/* ===== 基础 ===== */
html, body, ul, li, a, h1, h2, h3, p {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

hr {
    border: none;
}

html, body {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(60, 91, 147, 0.6);
    background-image: linear-gradient(140deg, rgba(61, 66, 96, 0.6) 20%, rgba(21, 23, 34, 0.8));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* 内页允许滚动 */
html.page, body.page {
    position: static;
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    background-attachment: fixed;
}

#particles-js {
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}

/* ===== 首页（落地页） ===== */
.main {
    display: table;
    width: 100%;
    height: 100%;
}

.main-inner {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    color: #FFF;
}

.main-content {
    max-width: 750px;
    margin: 0 auto;
}

.logo {
    width: 150px;
    border-radius: 50%;
    border: 3px solid #FFF;
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.3);
    transition: all .5s;
    position: relative;
    z-index: 800;
    background: #1c1f2e;
}

.logo:hover {
    border: 3px solid #FF7F00;
    transition: all .5s;
    transform: rotate(360deg);
}

.one-word {
    font-size: 18px;
    letter-spacing: 2px;
}

.divider {
    width: 50%;
    margin: 20px auto;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.nav {
    z-index: 800;
    position: relative;
}

.nav-item {
    display: inline-block;
    margin: 10px 5px;
}

.nav-item a {
    padding: 8px 16px;
    border: 1px solid #FFF;
    border-radius: 20px;
    font-size: 14px;
    letter-spacing: 1px;
    -webkit-font-smoothing: antialiased;
    display: block;
    color: #FFF;
    opacity: 0.6;
}

.nav-item a:hover {
    color: #FFF;
    background: #FF7F00;
    border-color: #FF7F00;
    opacity: 1;
    transition: all .3s;
}

.footer {
    position: absolute;
    font-size: 14px;
    color: #b3b3b3;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 800;
    text-align: center;
    padding-bottom: 8px;
}

.footer a {
    color: #b3b3b3;
}

/* ===== 内页（博客列表 / 文章 / 关于） ===== */
.page-wrap {
    position: relative;
    z-index: 800;
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    color: #FFF;
}

.page-header {
    text-align: center;
    margin-bottom: 36px;
}

.page-header .mini-logo {
    width: 72px;
    border-radius: 50%;
    border: 2px solid #FFF;
    transition: all .5s;
    background: #1c1f2e;
}

.page-header .mini-logo:hover {
    border-color: #FF7F00;
    transform: rotate(360deg);
}

.page-header .site-name {
    display: block;
    margin-top: 12px;
    font-size: 22px;
    letter-spacing: 4px;
    color: #FFF;
}

.page-nav {
    margin-top: 14px;
}

.page-nav a {
    padding: 5px 14px;
    margin: 0 4px;
    border: 1px solid #FFF;
    border-radius: 16px;
    font-size: 13px;
    letter-spacing: 1px;
    color: #FFF;
    opacity: 0.6;
    display: inline-block;
}

.page-nav a:hover,
.page-nav a.active {
    background: #FF7F00;
    border-color: #FF7F00;
    opacity: 1;
    transition: all .3s;
}

/* 文章卡片 */
.post-card {
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 18px;
    color: #FFF;
    background: rgba(21, 23, 34, 0.35);
    transition: all .3s;
}

.post-card:hover {
    border-color: #FF7F00;
    background: rgba(21, 23, 34, 0.6);
    transform: translateY(-2px);
}

.post-card .post-title {
    font-size: 19px;
    letter-spacing: 1px;
}

.post-card .post-meta {
    font-size: 13px;
    color: #b3b3b3;
    margin-top: 8px;
}

.post-card .post-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 10px;
    line-height: 1.7;
}

/* 文章正文 */
.article {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(21, 23, 34, 0.45);
    padding: 32px 36px;
    line-height: 1.9;
}

.article h1 {
    font-size: 26px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.article .post-meta {
    font-size: 13px;
    color: #b3b3b3;
    margin-bottom: 24px;
}

.article h2 {
    font-size: 20px;
    margin: 28px 0 12px;
    padding-left: 10px;
    border-left: 3px solid #FF7F00;
}

.article p {
    margin: 14px 0;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.88);
}

.article a {
    color: #FF9F40;
}

.article a:hover {
    color: #FF7F00;
}

.article code {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 14px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: #b3b3b3;
    font-size: 14px;
}

.back-link:hover {
    color: #FF7F00;
}

.page-footer {
    text-align: center;
    font-size: 13px;
    color: #b3b3b3;
    margin-top: 48px;
}

@media (max-width: 600px) {
    .article {
        padding: 24px 18px;
    }
}
