/*
Theme Name: Leyaep
Theme URI: https://yefengs.com/themes/leyaep/
Author: yefengs
Author URI: https://yefengs.com/
Description: 马卡龙配色，复古草稿纸风格，清新淡雅的单栏博客主题。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leyaep
Tags: one-column, custom-colors, light-dark, responsive-layout
*/

/* ============================================================
   CSS 变量 — 马卡龙配色方案（后台可切换）
   默认方案：粉桃
   ============================================================ */

:root {
    /* 基础色系（亮色模式） */
    --bg:          #faf8f5;
    --bg-alt:      #f5f2ed;
    --paper:       #fdfcf9;
    --border:      #ede8df;
    --text:        #5a5046;
    --text-sub:    #8c8070;
    --text-light:  #b0a496;
    --link:        #c97b84;
    --link-hover:  #a85963;
    --accent:      #e8a5ae;
    --accent-soft: #f5dde0;
    --tag-bg:      #fce8ea;
    --nav-hover:   #f9e0e3;
    --btn:         #d4848e;
    --btn-text:    #fff;
    --code-bg:     #f0ece6;
    --blockquote:  #d4a0a8;
    --hr:          #ede0d8;
    /* 光韵效果 */
    --glow-1:      rgba(232,165,174,0.18);
    --glow-2:      rgba(180,160,216,0.14);
    --glow-3:      rgba(212,192,96,0.10);
}

/* ---- 马卡龙 · 薄荷绿 ---- */
[data-scheme="mint"] {
    --bg:          #f5faf6;
    --bg-alt:      #eff5f0;
    --paper:       #fafdfb;
    --border:      #d8ede0;
    --text:        #3d5445;
    --text-sub:    #6e8c78;
    --text-light:  #9ab5a4;
    --link:        #5a9e72;
    --link-hover:  #3d7a55;
    --accent:      #8dcca4;
    --accent-soft: #d4eedf;
    --tag-bg:      #daf0e4;
    --nav-hover:   #d8edde;
    --btn:         #6db890;
    --btn-text:    #fff;
    --code-bg:     #e8f3ec;
    --blockquote:  #8ec9a4;
    --hr:          #cce6d5;
    --glow-1:      rgba(141,204,164,0.20);
    --glow-2:      rgba(100,180,140,0.14);
    --glow-3:      rgba(160,210,180,0.10);
}

/* ---- 马卡龙 · 天空蓝 ---- */
[data-scheme="sky"] {
    --bg:          #f4f8fc;
    --bg-alt:      #edf4fb;
    --paper:       #f9fcfe;
    --border:      #d5e6f5;
    --text:        #3a4f62;
    --text-sub:    #6080a0;
    --text-light:  #90acc8;
    --link:        #5090c8;
    --link-hover:  #2c6ea8;
    --accent:      #88bce0;
    --accent-soft: #d0e8f8;
    --tag-bg:      #d8edf8;
    --nav-hover:   #d5eaf8;
    --btn:         #6aaad8;
    --btn-text:    #fff;
    --code-bg:     #e4f0f8;
    --blockquote:  #8ab8d8;
    --hr:          #c8dff0;
    --glow-1:      rgba(136,188,224,0.20);
    --glow-2:      rgba(100,160,210,0.14);
    --glow-3:      rgba(140,190,230,0.10);
}

/* ---- 马卡龙 · 淡紫 ---- */
[data-scheme="lavender"] {
    --bg:          #f8f5fc;
    --bg-alt:      #f2edf9;
    --paper:       #fdfbfe;
    --border:      #e0d4f2;
    --text:        #4a3e62;
    --text-sub:    #7a6898;
    --text-light:  #a894c8;
    --link:        #8a6ec8;
    --link-hover:  #6a4ea8;
    --accent:      #b4a0d8;
    --accent-soft: #e4d8f5;
    --tag-bg:      #e8dcf8;
    --nav-hover:   #e4d8f8;
    --btn:         #9878c8;
    --btn-text:    #fff;
    --code-bg:     #ede8f5;
    --blockquote:  #b0a0d0;
    --hr:          #d8ccec;
    --glow-1:      rgba(180,160,216,0.20);
    --glow-2:      rgba(150,130,200,0.14);
    --glow-3:      rgba(200,180,230,0.10);
}

/* ---- 马卡龙 · 奶油黄 ---- */
[data-scheme="butter"] {
    --bg:          #fdfbf2;
    --bg-alt:      #f8f5e8;
    --paper:       #fefdf8;
    --border:      #ede8cc;
    --text:        #5a5030;
    --text-sub:    #8a7c50;
    --text-light:  #b0a278;
    --link:        #b89440;
    --link-hover:  #8c7020;
    --accent:      #d4c060;
    --accent-soft: #f0e8a8;
    --tag-bg:      #f5edd4;
    --nav-hover:   #f5ecc8;
    --btn:         #c8a840;
    --btn-text:    #fff;
    --code-bg:     #f0ecd8;
    --blockquote:  #c8b060;
    --hr:          #e0d8a8;
    --glow-1:      rgba(212,192,96,0.20);
    --glow-2:      rgba(200,168,64,0.14);
    --glow-3:      rgba(230,200,100,0.10);
}

/* ---- 夜间模式 ---- */
[data-mode="dark"] {
    --bg:          #1e1c19;
    --bg-alt:      #252320;
    --paper:       #2a2824;
    --border:      #38342e;
    --text:        #d8cfc4;
    --text-sub:    #a09080;
    --text-light:  #786858;
    --link:        #d4909a;
    --link-hover:  #e8b0ba;
    --accent:      #c08090;
    --accent-soft: #4a3038;
    --tag-bg:      #42303a;
    --nav-hover:   #3a2830;
    --btn:         #c08090;
    --btn-text:    #fff;
    --code-bg:     #282420;
    --blockquote:  #a08090;
    --hr:          #3c3028;
    --glow-1:      rgba(192,128,144,0.12);
    --glow-2:      rgba(160,100,120,0.08);
    --glow-3:      rgba(140,90,110,0.06);
}


/* ============================================================
   重置 & 基础
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image: linear-gradient(180deg, var(--paper) 0%, var(--bg) 300px);
    color: var(--text);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "STHeiti", "WenQuanYi Micro Hei", Helvetica, Arial, sans-serif;
    line-height: 1.82;
    text-rendering: optimizeLegibility;
    transition: background-color 0.28s ease, color 0.28s ease;
}
.hidden{
    display: none;
}
a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--link-hover); }

img {
    border: none;
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.5;
    font-weight: 600;
    margin: 0.8em 0 0.4em;
}

p { margin: 0.9em 0; }

hr {
    border: none;
    border-top: 1px solid var(--hr);
    margin: 2em 0;
}

blockquote {
    margin: 1.5em 0 1.5em 0;
    padding: 0.6em 1.2em;
    border-left: 3px solid var(--blockquote);
    color: var(--text-sub);
    font-size: 0.95em;
}

code, kbd, samp {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.88em;
    background: var(--code-bg);
    border-radius: 3px;
    padding: 0.1em 0.35em;
}

pre {
    background: var(--code-bg);
    border-radius: 6px;
    padding: 1.2em;
    overflow-x: auto;
    font-size: 0.88em;
    line-height: 1.65;
}

pre code {
    background: none;
    padding: 0;
}

figure { margin: 1.5em 0; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92em;
}
table th, table td {
    border: 1px solid var(--border);
    padding: 0.5em 0.9em;
    text-align: left;
}
table th {
    background: var(--bg-alt);
    font-weight: 600;
}

/* ============================================================
   布局骨架 — 单栏
   ============================================================ */

.wrap {
    width: 680px;
    margin: 0 auto;
}

/* ============================================================
   顶部导航栏
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.28s ease, border-color 0.28s ease;
}

.header-inner {
    width: 680px;
    margin: 0 auto;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* logo 左侧 */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo a {
    display: block;
    width: 120px;
    height: 38px;
    fill: var(--text-light);
    stroke: var(--text);
}
.site-logo a:hover{
    stroke: var(--text-light);
    fill: var(--text); 
}
.site-logo svg {

    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 右侧区域：导航 + 工具栏 */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 导航 */
.nav-area {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-menu li a {
    display: block;
    padding: 5px 11px;
    font-size: 13px;
    color: var(--text-sub);
    border-radius: 20px;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.03em;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    color: var(--link);
    background: var(--nav-hover);
}

/* 移动端菜单按钮 - 默认隐藏 */
.btn-icon.btn-menu {
    display: none;
}

.btn-menu .menu-icon {
    width: 18px;
    height: 18px;
}

.btn-menu .menu-icon line {
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* 菜单展开时的 X 动画 */
.btn-menu[aria-expanded="true"] .line-top {
    transform: translateY(5px) rotate(45deg);
}

.btn-menu[aria-expanded="true"] .line-mid {
    opacity: 0;
}

.btn-menu[aria-expanded="true"] .line-bottom {
    transform: translateY(-5px) rotate(-45deg);
}

/* 移动端下拉菜单 - 全宽下滑 */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 10px;
}

.mobile-menu-inner {
    width: 680px;
    margin: 0 auto;
    padding: 16px 0 20px;
}

.mobile-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mobile-nav-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text-sub);
    background: var(--bg-alt);
    border-radius: 16px;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.mobile-nav-menu li a:hover,
.mobile-nav-menu li.current-menu-item a,
.mobile-nav-menu li.current_page_item a {
    color: var(--link);
    background: var(--accent-soft);
}

/* 主题切换 & 颜色切换按钮组 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-alt);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-sub);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.btn-icon:hover {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--link);
}
.btn-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 颜色选择器下拉 */
.scheme-picker {
    position: relative;
}
.scheme-panel {
    display: none;
    position: absolute;
    right: 0;
    top: 38px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px;
    flex-direction: column;
    gap: 6px;
    min-width: 120px;
    z-index: 200;
}
.scheme-panel.open {
    display: flex;
}
.scheme-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-sub);
    transition: background 0.15s;
}
.scheme-item:hover, .scheme-item.active {
    background: var(--accent-soft);
    color: var(--link);
}
.scheme-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================
   页面主体
   ============================================================ */

.site-body {
    min-height: 60vh;
    padding: 40px 0 60px;
}
.wormhole{
    text-align: center;
}
.wormhole a{
    color: var(--text-light);
}
.wormhole a:hover{
    color: var(--text);
}
.wormhole svg{
    width: 100px;
    height: 46px;
}




/* ============================================================
   文章列表
   ============================================================ */

.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-item {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.post-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.post-item:last-child {
    border-bottom: none;
}

/* 文章缩略图 */
.post-thumb {
    margin: 16px auto;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
}

.post-thumb a {
    display: block;
}

.post-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 0.4s ease;
    border-radius: 8px;
}

/* 文章标题 */
.post-title {
    font-size: 1.15em;
    font-weight: 600;
    margin: 0 0 8px;
    line-height: 1.55;
}

.post-title a {
    color: var(--text);
}
.post-title a:hover {
    color: var(--link);
}

/* 文章摘要 */
.post-excerpt {
    font-size: 0.92em;
    color: var(--text-sub);
    line-height: 1.75;
    margin: 0 0 12px;
}

/* 文章元信息 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
    justify-content: flex-end;
}

.post-meta a {
    color: var(--text-light);
}
.post-meta a:hover {
    color: var(--link);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-item svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* 继续阅读 */
.read-more {
    display: inline-block;
    font-size: 12px;
    color: var(--link);
    border: 1px solid var(--accent);
    border-radius: 20px;
    padding: 3px 14px;
    transition: background 0.2s ease, color 0.2s ease;
    letter-spacing: 0.04em;
}
.read-more:hover {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   分页导航
   ============================================================ */

#navigation, #commentnav {
    text-align: center;
    padding: 30px 0 0;
}

#navigation a, #navigation span,
#commentnav .page-numbers {
    display: inline-block;
    font-size: 13px;
    color: var(--text-sub);
    border: 1px solid var(--border);
    height: 28px;
    line-height: 26px;
    padding: 0 11px;
    margin: 0 2px;
    border-radius: 14px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#navigation a:hover,
#commentnav .page-numbers:hover {
    background: var(--accent-soft);
    color: var(--link);
    border-color: var(--accent);
}

#navigation .current,
#commentnav .page-numbers.current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

#navigation span, #commentnav .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* 下拉加载提示 */
#load-more-tip {
    text-align: center;
    padding: 20px 0;
    font-size: 13px;
    color: var(--text-light);
}

/* ============================================================
   单篇文章 / 页面
   ============================================================ */

.single-article {
    padding: 40px 0;
}

.single-title {
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.5;
    margin: 0 0 14px;
    color: var(--text);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.single-meta a { color: var(--text-light); }
.single-meta a:hover { color: var(--link); }

/* 正文内容 */
.entry-content {
    font-size: 0.97em;
    line-height: 1.85;
    color: var(--text);
    word-break: break-word;
    overflow-wrap: break-word;
}

.entry-content p {
    margin: 1em 0;
}

.entry-content h2 {
    font-size: 1.25em;
    margin: 1.8em 0 0.6em;
}
.entry-content h3 {
    font-size: 1.1em;
    margin: 1.5em 0 0.5em;
}

.entry-content img {
    border-radius: 6px;
    margin: 1em auto;
}

.entry-content a {
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.entry-content ul, .entry-content ol {
    padding-left: 1.6em;
    margin: 0.8em 0;
}
.entry-content li {
    margin: 0.3em 0;
}

/* 文章标签 */
.post-tags {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--tag-bg);
    color: var(--link);
    transition: background 0.2s ease;
}
.tag-item:hover {
    background: var(--accent-soft);
}

/* 上一篇/下一篇 */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.post-nav a {
    flex: 1;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.5;
}
.post-nav a:hover { color: var(--link); }
.post-nav .next-post { text-align: right; }
.post-nav .nav-label {
    display: block;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 3px;
    letter-spacing: 0.04em;
}

/* ============================================================
   评论区
   ============================================================ */

.comments-wrap {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.comments-heading {
    font-size: 1em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 24px;
}

/* 评论列表 */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list li { list-style: none; }

.comment-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }

.comment-inner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.comment-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}

.comment-body { flex: 1; min-width: 0; }

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 12px;
}

.comment-author-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}
.comment-author-name.is-author { color: var(--link); }
.comment-author-name a { color: inherit; }

.comment-time {
    color: var(--text-light);
}

.comment-location {
    color: var(--text-light);
}

.comment-text {
    font-size: 13.5px;
    color: var(--text);
    line-height: 1.7;
    word-break: break-word;
}
.comment-text p { margin: 0; }

.comment-reply {
    margin-top: 6px;
}

.comment-reply-link {
    font-size: 12px;
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1px 10px;
    display: inline-block;
    transition: color 0.2s, background 0.2s;
}
.comment-reply-link:hover {
    color: var(--link);
    background: var(--accent-soft);
    border-color: var(--accent);
}

/* @提及 */
.comment-at {
    color: var(--link);
    margin-right: 3px;
    font-size: 12px;
}

/* 子评论缩进 */
.children {
    list-style: none;
    margin: 0;
    padding: 0 0 0 50px;
}
.children .comment-item {
    padding: 10px 0;
}
.children .comment-avatar img {
    width: 28px;
    height: 28px;
}

/* 评论表单 */
.comment-form-wrap {
    margin-top: 36px;
}

.comment-form-title {
    font-size: 0.9em;
    color: var(--text-sub);
    margin: 0 0 16px;
}

#respond {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 20px;
}

.form-fields {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-fields .field-wrap {
    flex: 1;
}

.form-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--paper);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-field:focus {
    border-color: var(--accent);
}

.form-content-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.textarea-wrap { flex: 1; }

#comment {
    width: 100%;
    height: 72px;
    resize: none;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--paper);
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    display: block;
}
#comment:focus { border-color: var(--accent); }

#submit {
    padding: 0 22px;
    height: 72px;
    background: var(--btn);
    color: var(--btn-text);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
#submit:hover { opacity: 0.85; }
#submit:disabled { opacity: 0.5; cursor: default; }

#cancel-comment-reply-link {
    display: inline-block;
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: var(--bg-alt);
    color: var(--text-light);
    margin-top: 8px;
    transition: background 0.2s;
}
#cancel-comment-reply-link:hover {
    background: var(--accent-soft);
    color: var(--link);
}

.comment-notes {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* ajax 提交状态 */
#cmt-loading, #cmt-error {
    font-size: 13px;
    padding: 8px 0;
    display: none;
}
#cmt-loading { color: var(--text-light); }
#cmt-error   { color: #c87070; }

/* ============================================================
   页脚
   ============================================================ */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    background: var(--paper);
    text-align: center;
    font-size: 12px;
    color: var(--text-light);
    transition: background-color 0.28s ease;
}

.site-footer a {
    color: var(--text-light);
}
.site-footer a:hover { color: var(--link); }

/* ============================================================
   404 页面
   ============================================================ */

.not-found {
    text-align: center;
    padding: 80px 0;
}
.not-found .code {
    font-size: 5em;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 10px;
}
.not-found p {
    font-size: 1em;
    color: var(--text-sub);
}
.not-found .back-home {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 24px;
    border: 1px solid var(--accent);
    border-radius: 20px;
    font-size: 13px;
    color: var(--link);
    transition: background 0.2s;
}
.not-found .back-home:hover {
    background: var(--accent-soft);
}

/* ============================================================
   加载动画
   ============================================================ */

/* 顶部加载进度条 */
.nprogress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: var(--accent);
    z-index: 9999;
    border-radius: 0 2px 2px 0;
    pointer-events: none;
    opacity: 1;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.nprogress-bar.is-done {
    opacity: 0;
    transition: width 0.1s ease, opacity 0.4s ease 0.1s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
}

/* ============================================================
   滚动加载 spinner
   ============================================================ */

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   响应式
   ============================================================ */

@media (max-width: 740px) {
    .wrap,
    .header-inner,
    .mobile-menu-inner {
        width: auto;
        padding: 0 16px;
    }

    .header-inner {
        height: 50px;
        position: relative;
    }

    /* 隐藏桌面导航，显示汉堡菜单 */
    .nav-area {
        display: none;
    }
    .btn-icon.btn-menu {
        display: flex;
        width: 36px;
        height: 36px;
    }

    .site-logo a {
        width: 95px;
        height: 30px;
    }

    .form-fields {
        flex-direction: column;
        gap: 8px;
    }

    .post-nav {
        flex-direction: column;
        gap: 10px;
    }
    .post-nav .next-post { text-align: left; }
}

@media (max-width: 480px) {
    body { font-size: 15px; }

    .single-title { font-size: 1.3em; }

    .nav-menu { gap: 0; }

    .children {
        padding-left: 30px;
    }
}
