/* ============================================
   办文绿软教程网 - 前台样式 v15（品牌绿 · 精致清新头部）
   主色回归品牌青绿；头部重新设计：绿渐变 + 带图标logo + 白底搜索框
   手机端：头部两行（Logo+搜索 / 导航换行胶囊），不溢出
   ============================================ */
:root {
    --accent:       #0d9488;              /* 品牌青绿 */
    --accent-hover: #0f766e;
    --accent-deep:  #115e59;
    --accent-bg:    #f0fdfa;
    --text:         #0f172a;
    --text-muted:   #64748b;
    --text-light:   #94a3b8;
    --bg:           #f4f6fb;
    --surface:      rgba(255, 255, 255, .82);
    --border:       #e2e8f0;
    --radius:       12px;
    --radius-sm:    8px;
    --shadow-sm:    0 1px 2px rgba(13,148,136,.05);
    --shadow-md:    0 6px 20px rgba(13,148,136,.08);
    --trans:        all .25s cubic-bezier(.4,0,.2,1);
}
::selection { background: var(--accent-bg); color: var(--accent-hover); }
/* 始终预留竖向滚动条位置：内容多/少都不导致居中容器左右跳动偏位 */
html { scrollbar-gutter: stable; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
                 Arial, "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.75;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
#bgParticles {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}
a { color: var(--accent); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    flex: 1 0 auto;
    width: 100%;
}

/* ============================================
   头部 · 品牌绿渐变，精致清新
   ============================================ */
.site-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #14b8a6 100%);
    border-bottom: none;
    box-shadow: 0 2px 16px rgba(13,148,136,.30);
    position: sticky; top: 0; z-index: 1000;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    gap: 20px;
}
/* Logo：小图标 + 文字，精致 */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.3px;
    white-space: nowrap;
}
.logo:hover { color: rgba(255,255,255,.92); }
.logo-img { height: 30px; width: auto; max-width: 200px; display: block; vertical-align: middle; }
.header-right { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: flex-end; }
/* 导航胶囊 */
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
    color: rgba(255,255,255,.88);
    font-size: 14px; font-weight: 500;
    padding: 6px 14px;
    border-radius: 999px;
    transition: var(--trans);
}
.main-nav a svg { color: rgba(255,255,255,.85); }
/* 栏目自定义图标：覆盖全局 img 的 block 换行，保持与文字同行 */
.nav-icon-img { display: inline-block; flex: 0 0 auto; width: 16px; height: 16px; max-width: 16px; object-fit: contain; vertical-align: -2px; margin-right: 5px; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.16); }
/* 搜索框：白底圆润，精致醒目 */
.search-box { position: relative; flex-shrink: 0; }
.search-box input {
    width: 180px; height: 36px; padding: 0 14px 0 34px;
    border: none; border-radius: 999px;
    font-size: 13px; background: #fff; color: #0f172a; outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    transition: var(--trans);
}
.search-box input::placeholder { color: #94a3b8; }
.search-box input:focus { width: 220px; box-shadow: 0 0 0 3px rgba(255,255,255,.45); }
.search-box::before {
    content: ""; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    width: 10px; height: 10px; border: 2px solid #64748b; border-radius: 50%; pointer-events: none;
}
.search-box::after {
    content: ""; position: absolute; left: 19px; top: 50%; transform: translateY(-50%) rotate(-45deg);
    width: 2px; height: 5px; background: #64748b; pointer-events: none;
}
/* 实时搜索下拉 */
.search-dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 280px;
    z-index: 999; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 12px 32px rgba(15,23,42,.14); overflow: hidden;
}
.sd-item { display: block; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid #f1f5f9; transition: background .15s; }
.sd-item:hover { background: #f8fafc; }
.sd-item:last-child { border-bottom: none; }
.sd-t { font-size: 14px; color: #0f172a; font-weight: 600; line-height: 1.4; }
.sd-m { margin-top: 3px; font-size: 12px; color: #94a3b8; display: flex; gap: 10px; align-items: center; }
.sd-cat { color: #0d9488; }
.sd-empty { padding: 12px 14px; font-size: 13px; color: #94a3b8; }
.sd-more { padding: 9px 14px; font-size: 12px; color: #0d9488; text-align: center; background: #f8fafc; }
/* 汉堡菜单：桌面端隐藏，导航完整显示 */
.nav-toggle { display: none; }
.nav-toggle-btn { display: none; }
.drawer, .drawer-mask { display: none; }
.breadcrumb {
    font-size: 13px; color: var(--text-muted);
    margin: 4px 0 18px;
    display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
}
.breadcrumb::before {
    content: "";
    width: 15px; height: 15px;
    background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%230d9488%22%3E%3Cpath d=%22M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z%22/%3E%3C/svg%3E') center/contain no-repeat;
    flex-shrink: 0; margin-right: 2px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-light); margin: 0 3px; font-size: 12px; }
.breadcrumb span:last-child { color: var(--accent); font-weight: 600; }

/* ===== 布局 ===== */
.main-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 28px; margin-top: 24px; margin-bottom: 48px; align-items: start; }
/* 文章页保持紧凑：面包屑紧贴绿条、间距小；首页/分类页用上面的较大间距 */
.main-wrap:has(.content-area.single-post) { margin-top: 8px; }
.content-area { min-width: 0; }
/* 文章卡片 */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    margin-bottom: 16px;
    transition: var(--trans);
}
.post-card:hover { border-color: #99f6e4; box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* 标题 hover 绿色竖条 */
.post-title a { position: relative; padding-left: 2px; color: var(--text); transition: color .25s cubic-bezier(.4,0,.2,1), padding-left .25s cubic-bezier(.4,0,.2,1); }
.post-title a:hover { color: var(--accent); padding-left: 16px; }
.post-title a:hover::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 18px; border-radius: 3px; background: var(--accent);
}
.post-title { font-size: 19px; line-height: 1.4; font-weight: 700; margin-bottom: 8px; }
.post-meta { font-size: 12.5px; color: var(--text-light); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.post-excerpt {
    font-size: 14.5px; color: #334155; line-height: 1.75; margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* 卡片底部 */
.card-foot {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags .tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1.4; }
.card-tags .tag-cat { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.card-tags .tag-cat:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.card-tags .tag:not(.tag-cat) { background: transparent; color: #94a3b8; border: 1px solid #e2e8f0; }
.card-tags .tag:not(.tag-cat):hover { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.read-more { font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.read-more:hover { color: var(--accent-hover); }
/* 单篇文章 */
.single-post .post-full { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px 48px; }
.post-full-title { font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -.3px; margin-bottom: 12px; }
.post-content { font-size: 16.5px; line-height: 1.9; color: #334155; margin-top: 24px; }
.post-content a { color: var(--accent); border-bottom: 1px solid #99f6e4; }
.post-content a:hover { color: var(--accent-hover); border-bottom-color: var(--accent); }
.post-content h2 { font-size: 20px; font-weight: 700; margin: 48px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.post-content h3 { font-size: 17px; font-weight: 600; margin: 32px 0 12px; color: var(--text); }
.post-content p { margin-bottom: 20px; }
.post-content img { border-radius: var(--radius-sm); margin: 24px auto; border: 1px solid var(--border); }
.post-content ul, .post-content ol { margin: 16px 0 24px 26px; color: #475569; }
.post-content li { margin-bottom: 6px; }
.post-content code { background: #ccfbf1; padding: 2px 6px; border-radius: 5px; font-size: .88em; color: #0f766e; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.post-content pre { background: #0f172a; color: #e2e8f0; padding: 18px 22px; border-radius: var(--radius-sm); overflow-x: auto; font-size: 13.5px; line-height: 1.7; margin: 24px 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.post-content pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.post-content blockquote { border-left: 3px solid #5eead4; background: #f0fdfa; padding: 14px 18px; margin: 24px 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: #475569; }
.post-content .video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 28px 0; border-radius: var(--radius-sm); background: #000; }
.post-content .video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.post-tags { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; }
.post-tags .tag { display: inline-block; padding: 4px 12px; background: var(--accent-bg); color: var(--accent); border-radius: 999px; font-size: 12.5px; font-weight: 500; }
.post-tags .tag:hover { background: var(--accent); color: #fff; }
.copyright { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px 24px; margin: 32px 0; font-size: 13px; color: var(--text-muted); text-align: center; line-height: 1.8; }
/* --- 打赏弹窗 --- */
.reward-box { text-align: center; margin: 44px 0 8px; }
.reward-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 36px;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: #fff; border: none; border-radius: 999px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 16px rgba(13,148,136,.28); transition: var(--trans);
}
.reward-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.reward-btn::before { content: "★"; font-size: 17px; }
.reward-qrcode {
    display: none; position: fixed; inset: 0;
    background: rgba(15,23,42,.62); backdrop-filter: blur(5px);
    z-index: 9999; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.reward-qrcode.show { display: flex !important; opacity: 1; }
.reward-qrcode .qr-card {
    background: #fff; padding: 24px 30px; border-radius: 16px; text-align: center;
    box-shadow: 0 20px 60px rgba(15,23,42,.25); max-width: 420px; width: 90%;
    transform: scale(0.95); transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reward-qrcode.show .qr-card { transform: scale(1); }
.reward-qrcode .reward-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.reward-qrcode img { width: 360px; height: auto; border-radius: 10px; margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: block; }
.reward-qrcode .close-tip { font-size: 12px; color: var(--text-light); margin-top: 14px; cursor: pointer; user-select: none; transition: color 0.2s; }
.reward-qrcode .close-tip:hover { color: var(--accent); }
/* --- 打赏弹窗结束 --- */
.comment-area { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; margin-top: 24px; }
.sidebar { position: sticky; top: 76px; }
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.widget-title { font-size: 14.5px; font-weight: 700; margin-bottom: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.widget-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--accent); display: inline-block; }
.recent-list, .cat-list { list-style: none; }
.recent-list li, .cat-list li { padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.recent-list li:last-child, .cat-list li:last-child { border-bottom: none; }
.recent-list a { color: #475569; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list a:hover { color: var(--accent); }
.cat-list a { color: #475569; display: flex; justify-content: space-between; }
.cat-list a:hover { color: var(--accent); }
.count { background: var(--accent); color: #fff; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pagination { margin: 36px 0; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: 13.5px; font-weight: 500; color: var(--text-muted); transition: var(--trans); }
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.site-footer { background: #0f172a; color: #9ca3af; text-align: center; padding: 22px 20px; font-size: 12.5px; line-height: 1.8; flex-shrink: 0; }
.site-footer a { color: #d1d5db; margin: 0 5px; }
.site-footer a:hover { color: #5eead4; }
.page-title { font-size: 24px; font-weight: 800; margin-bottom: 20px; letter-spacing: -.3px; }
.cat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: -8px 0 20px; padding: 12px 16px; background: var(--accent-bg); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.empty { text-align: center; padding: 64px 20px; color: var(--text-muted); font-size: 15px; }
/* 平板（901-641px） */
@media (max-width: 900px) {
    .main-wrap { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
    .main-wrap:has(.content-area.single-post) { margin-top: 8px; }
    .sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .widget { margin-bottom: 0; }
    .single-post .post-full { padding: 28px 24px; }
    .post-full-title { font-size: 24px; }
}
/* ============================================
   手机端（≤640px）· 品牌绿精致头部
   头部两行：第1行 Logo+搜索（白底搜索框）/ 第2行导航换行胶囊
   ============================================ */
@media (max-width: 640px) {
    body { font-size: 15px; line-height: 1.7; }
    .container { padding: 0 16px; }

    /* ===== 头部：汉堡(左) + Logo(中) + 放大镜(右)；点汉堡展开导航 ===== */
    .site-header { box-shadow: 0 2px 16px rgba(13,148,136,.30); }
    .header-inner {
        position: relative;
        height: auto;
        flex-wrap: wrap;
        align-items: center;
        gap: 0 12px;
        padding: 14px 0 14px;
    }
    .header-right { display: contents; }
    /* checkbox 隐藏，只作为状态开关 */
    .nav-toggle { display: none; }
    /* 汉堡按钮（三个杠）：左上角 */
    .nav-toggle-btn {
        position: absolute;
        left: 16px; top: 50%;
        transform: translateY(-50%);
        width: 34px; height: 34px;
        display: flex; align-items: center; justify-content: center;
        flex-direction: column; gap: 5px;
        cursor: pointer; border-radius: 8px;
        z-index: 2;
    }
    .nav-toggle-btn span {
        display: block; width: 20px; height: 2.5px;
        border-radius: 2px; background: #fff;
        transition: var(--trans);
    }
    /* Logo：居中，大气 */
    .logo {
        order: 1;
        width: 100%;
        justify-content: center;
        text-align: center;
        font-size: 20px;
        letter-spacing: -.2px;
        white-space: nowrap;
    }
    .logo-img { height: 28px; width: auto; max-width: 160px; }

    /* 搜索框：右上角放大镜小图标，点击聚焦后展开为白底输入框 */
    .search-box {
        order: 2;
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        flex-shrink: 0;
    }
    .search-box input {
        width: 38px; height: 38px; padding: 0;
        border-radius: 50%;
        border: 1px solid rgba(255,255,255,.4);
        background: rgba(255,255,255,.2);
        color: #fff; font-size: 13px; outline: none; cursor: pointer;
        transition: var(--trans);
    }
    .search-box input::placeholder { color: transparent; }
    /* 放大镜图标：收起时居中 */
    .search-box::before {
        content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
        width: 13px; height: 13px; border: 2px solid #fff; border-radius: 50%;
        pointer-events: none; transition: var(--trans);
    }
    .search-box::after {
        content: ""; position: absolute; left: calc(50% + 8px); top: calc(50% + 8px);
        transform: rotate(-45deg); width: 2px; height: 7px; background: #fff;
        pointer-events: none; transition: var(--trans);
    }
    /* 点击聚焦：展开成白底输入框 */
    .search-box:focus-within input {
        width: 168px; border-radius: 999px; padding: 0 14px 0 36px;
        background: #fff; color: #0f172a; cursor: text;
        box-shadow: 0 2px 12px rgba(0,0,0,.14);
    }
    .search-box:focus-within input::placeholder { color: #94a3b8; }
    .search-box:focus-within::before { left: 12px; transform: translateY(-50%); border-color: #64748b; }
    .search-box:focus-within::after { left: 19px; top: 50%; transform: translateY(-50%) rotate(-45deg); background: #64748b; }
    /* 移动端下拉：右对齐，避免超出屏幕 */
    .search-dropdown { min-width: 240px; left: auto; right: 0; top: calc(100% + 6px); }

    /* 导航：手机端隐藏横排导航，改用左侧抽屉侧边栏 */
    .header-right .main-nav { display: none; }
    /* 抽屉遮罩 */
    .drawer-mask {
        display: block;
        position: fixed; inset: 0;
        background: rgba(15,23,42,.5);
        opacity: 0; visibility: hidden;
        transition: opacity .3s, visibility .3s;
        z-index: 2000;
        cursor: pointer;
    }
    .nav-toggle:checked ~ .drawer-mask { opacity: 1; visibility: visible; }
    /* 侧边栏抽屉：从左侧滑出 */
    .drawer {
        position: fixed; top: 0; left: 0; bottom: 0;
        width: 78vw; max-width: 320px;
        background: #fff;
        transform: translateX(-100%);
        transition: transform .3s cubic-bezier(.4,0,.2,1);
        z-index: 2001;
        display: flex; flex-direction: column;
        box-shadow: 4px 0 30px rgba(15,23,42,.18);
    }
    .nav-toggle:checked ~ .drawer { transform: translateX(0); }
    /* 抽屉头部：网站名 + 关闭叉 */
    .drawer-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 18px 18px 16px;
        background: linear-gradient(135deg, #0f766e, #0d9488);
        color: #fff;
    }
    .drawer-logo { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
    .drawer-close {
        width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
        font-size: 22px; color: #fff; border-radius: 50%; cursor: pointer; line-height: 1;
        background: rgba(255,255,255,.15);
    }
    /* 抽屉导航列表 */
    .drawer-nav { flex: 1; overflow-y: auto; padding: 8px 0; }
    .drawer-link {
        display: flex; align-items: center; gap: 6px;
        padding: 12px 18px; font-size: 15px; color: #0f172a;
        border-bottom: 1px solid #f1f5f9; transition: var(--trans);
    }
    .drawer-link svg { color: var(--accent); }
    .drawer-link:hover, .drawer-link.active { color: var(--accent); background: var(--accent-bg); }
    .drawer-foot {
        padding: 14px 18px; font-size: 12px; color: var(--text-light);
        border-top: 1px solid var(--border); text-align: center;
    }

    /* ===== 面包屑 ===== */
    .breadcrumb {
        margin: 4px 0 14px; font-size: 12px; color: var(--text-muted);
        display: flex; align-items: center; gap: 2px; flex-wrap: wrap;
    }
    .breadcrumb::before {
        content: "";
        width: 13px; height: 13px;
        background: url('data:image/svg+xml;utf8,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22%230d9488%22%3E%3Cpath d=%22M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z%22/%3E%3C/svg%3E') center/contain no-repeat;
        flex-shrink: 0; margin-right: 2px;
    }
    .breadcrumb a { color: var(--text-muted); }
    .breadcrumb .sep { color: var(--text-light); margin: 0 3px; }
    .breadcrumb span:last-child { color: var(--accent); font-weight: 600; }

    /* ===== 列表卡片 ===== */
    .post-card { padding: 18px 18px; margin-bottom: 12px; border-radius: 14px; background: #fff; border: none; box-shadow: 0 4px 20px rgba(13,148,136,.07); }
    .post-title { font-size: 17px; line-height: 1.45; margin-bottom: 6px; }
    .post-meta { font-size: 12px; gap: 8px; margin-bottom: 8px; color: var(--text-light); }
    .post-excerpt { font-size: 14px; line-height: 1.7; margin-bottom: 14px; -webkit-line-clamp: 2; color: #334155; }
    .card-foot { padding-top: 12px; gap: 8px; border-top: 1px solid #f1f5f9; }
    .card-tags .tag { padding: 3px 10px; font-size: 11.5px; }

    /* ===== 单篇文章 ===== */
    .single-post .post-full { padding: 24px 18px; border-radius: 14px; background: #fff; border: none; box-shadow: 0 6px 24px rgba(13,148,136,.08); }
    .post-full-title { font-size: 23px; line-height: 1.4; letter-spacing: -.2px; margin-bottom: 12px; }
    .post-meta { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #f1f5f9; }
    .post-content { font-size: 15.5px; line-height: 1.9; color: #334155; margin-top: 18px; }
    .post-content h2 { font-size: 18px; margin: 30px 0 12px; padding-bottom: 8px; }
    .post-content h3 { font-size: 16px; margin: 24px 0 10px; }
    .post-content p { margin-bottom: 16px; }
    .post-content img { margin: 20px auto; border-radius: 12px; border: none; box-shadow: 0 4px 16px rgba(13,148,136,.12); }
    .post-content ul, .post-content ol { margin: 12px 0 18px 22px; }
    .post-content pre { padding: 14px 16px; font-size: 12.5px; line-height: 1.6; margin: 18px 0; }
    .post-content blockquote { padding: 12px 14px; margin: 18px 0; font-size: 14.5px; }

    /* ===== 标签 / 版权 ===== */
    .post-tags { margin-top: 24px; padding-top: 14px; gap: 6px; }
    .post-tags .tag { padding: 4px 11px; font-size: 12px; }
    .copyright { padding: 14px 16px; font-size: 12px; margin: 22px 0; line-height: 1.7; }

    /* ===== 打赏 ===== */
    .reward-box { margin: 30px 0 6px; }
    .reward-btn { width: 100%; max-width: 280px; justify-content: center; padding: 12px 0; font-size: 15px; }
    .reward-qrcode .qr-card { padding: 26px 20px; }
    .reward-qrcode img { width: min(280px, 78vw); }
    .reward-qrcode .reward-title { font-size: 16px; margin-bottom: 14px; }
    .reward-qrcode .close-tip { margin-top: 12px; }

    /* ===== 评论区 / 侧边栏 ===== */
    .comment-area { padding: 18px 16px; background: #fff; border: none; box-shadow: 0 4px 20px rgba(13,148,136,.07); border-radius: 14px; }
    .sidebar { grid-template-columns: 1fr; gap: 12px; }
    .widget { padding: 16px; background: #fff; border: none; box-shadow: 0 4px 20px rgba(13,148,136,.07); border-radius: 14px; }
    /* 手机端：隐藏侧边栏「文章分类」（导航汉堡菜单里已有分类），PC端保留 */
    .widget-cat { display: none; }
    .copyright { background: #f8fafc; }
    .cat-desc { margin: -4px 0 16px; padding: 10px 14px; font-size: 13px; }

    /* ===== 分页 ===== */
    .pagination { margin: 24px 0 32px; display: flex; gap: 10px; }
    .page-btn {
        flex: 1; height: 44px; border-radius: 10px;
        font-size: 14px; font-weight: 500;
        display: inline-flex; align-items: center; justify-content: center;
        border: none; background: #fff; color: var(--text);
        box-shadow: 0 2px 10px rgba(13,148,136,.06);
    }
    .page-btn.active { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(13,148,136,.3); }
    .page-btn:hover { color: var(--accent); }

    /* ===== 页脚 / 标题 / 空状态 ===== */
    .site-footer { padding: 18px 16px; font-size: 12px; line-height: 1.7; }
    .page-title { font-size: 20px; margin-bottom: 16px; }
    .empty { padding: 48px 20px; font-size: 14px; }
}

/* ===== 首页主视觉 Banner：渐变 + 网格背景 ===== */
.hero-wrap{display:block;max-width:1160px;width:100%;margin:22px auto 0;padding:0 24px;box-sizing:border-box;}
.hero{position:relative;border-radius:18px;border:1px solid rgba(13,148,136,.3);padding:42px 38px;overflow:hidden;
  background:
    radial-gradient(1100px 480px at 15% -20%,rgba(13,148,136,.32),transparent 60%),
    radial-gradient(900px 420px at 90% 130%,rgba(15,118,110,.22),transparent 60%),
    linear-gradient(135deg,#062826,#0b3d39 55%,#0f554e);}
.hero-grid{position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(rgba(45,212,191,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(45,212,191,.09) 1px,transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:radial-gradient(ellipse at 50% 0%,#000 25%,transparent 72%);
  mask-image:radial-gradient(ellipse at 50% 0%,#000 25%,transparent 72%);}
.hero-inner{position:relative;z-index:1;}
.hero-title{font-size:36px;font-weight:800;color:#fff;letter-spacing:2px;line-height:1.2;}
.hero-sub{margin-top:12px;font-size:15px;color:#99f6e4;max-width:760px;line-height:1.7;}
.hero-wrap + main{margin-top:24px;}
@media (max-width:768px){
  .hero{padding:30px 22px;border-radius:14px;}
  .hero-title{font-size:26px;letter-spacing:1px;}
  .hero-sub{font-size:13px;}
  .hero-wrap{margin:16px 0 0;padding:0 14px;max-width:100%;}
}

/* ===== 自写评论系统 ===== */
.comment-head{font-size:16px;font-weight:700;margin-bottom:16px;display:flex;align-items:center;gap:8px}
.comment-head::before{content:"";width:4px;height:16px;border-radius:2px;background:var(--accent);display:inline-block}
.comment-list{margin-bottom:8px}
.comment-item{padding:14px 0;border-bottom:1px dashed var(--border)}
.comment-item:last-child{border-bottom:none}
.comment-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;gap:10px;flex-wrap:wrap}
.comment-nick{font-size:14px;font-weight:600;color:var(--accent-deep)}
.comment-time{font-size:12px;color:var(--text-light)}
.comment-body{font-size:14.5px;color:var(--text);line-height:1.8;word-break:break-word}
.comment-empty{text-align:center;color:var(--text-light);padding:20px 0;font-size:14px}
/* 回复功能 */
.comment-replyto{display:inline-block;font-size:11px;color:#fff;background:var(--accent);border-radius:999px;padding:1px 8px;margin-left:6px}
.comment-reply-btn{background:none;border:1px solid var(--border);color:var(--accent);font-size:12px;padding:2px 10px;border-radius:999px;cursor:pointer;transition:var(--trans);margin-left:auto}
.comment-reply-btn:hover{border-color:var(--accent);background:rgba(13,148,136,.06)}
.comment-replies{margin:12px 0 0 26px;padding-left:16px;border-left:2px solid rgba(13,148,136,.18)}
.comment-replies .comment-item{border-bottom:none;padding:10px 0}
.comment-reply-hint{background:#f0fdfa;border:1px solid #99f6e4;color:#0f766e;font-size:13px;padding:8px 14px;border-radius:8px;margin-bottom:10px}
.comment-reply-hint a{color:var(--accent);margin-left:8px;font-weight:600;text-decoration:none}
#commentForm{margin-top:18px;border-top:1px solid var(--border);padding-top:18px}
.comment-row{display:flex;gap:12px;margin-bottom:10px}
.comment-row input{flex:1;padding:9px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:14px;outline:none;background:#fff}
.comment-row input:focus{border-color:var(--accent)}
#cContent{width:100%;min-height:96px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:14px;outline:none;resize:vertical;font-family:inherit;background:#fff}
#cContent:focus{border-color:var(--accent)}
.comment-foot{display:flex;align-items:center;gap:12px;margin-top:10px}
#cSubmit{background:var(--accent);color:#fff;border:none;padding:9px 24px;border-radius:var(--radius-sm);font-size:14px;cursor:pointer;transition:var(--trans)}
#cSubmit:hover{background:var(--accent-hover)}
#cSubmit:disabled{opacity:.6;cursor:not-allowed}
#cMsg{font-size:13px;color:var(--text-muted)}
#cMsg.ok{color:#16a34a}
#cMsg.err{color:#dc2626}
@media (max-width:768px){.comment-row{flex-direction:column;gap:8px}}
@media (max-width:768px){.comment-replies{margin-left:12px;padding-left:10px}}
