
:root {
    --wf-primary: #3b5bdb;
    --wf-primary-soft: #e7ecfd;
    --wf-bg: #f2f4f7;
    --wf-card: #ffffff;
    --wf-dark: #1f2430;
    --wf-text: #23272f;
    --wf-muted: #6b7280;
    --wf-line: #e5e8ee;
    --wf-radius: 10px;
    --wf-shadow: 0 1px 3px rgba(20, 28, 46, .08);
    --wf-shadow-hover: 0 12px 28px rgba(20, 28, 46, .16);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--wf-bg);
    color: var(--wf-text);
    font-size: 15px;
    line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- 紧凑深色导航 ---------- */
.wf-header { background: var(--wf-dark); color: #fff; }
.wf-header-in { display: flex; align-items: center; gap: 28px; height: 56px; }
.wf-logo { font-size: 19px; font-weight: 700; letter-spacing: 1px; color: #fff; white-space: nowrap; }
.wf-logo i { font-style: normal; color: #9db4ff; }
.wf-nav { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; }
.wf-nav a {
    color: #cfd6e4; font-size: 14px; padding: 6px 12px; border-radius: 6px; white-space: nowrap;
    transition: background .2s, color .2s;
}
.wf-nav a:hover, .wf-nav-home { background: rgba(255,255,255,.1); color: #fff !important; }
.wf-search { display: flex; flex: 0 0 auto; }
.wf-search input {
    width: 150px; height: 32px; padding: 0 10px; border: none; border-radius: 6px 0 0 6px;
    background: #2b3242; color: #fff; font-size: 13px; outline: none;
}
.wf-search input::placeholder { color: #8b93a7; }
.wf-search button {
    height: 32px; padding: 0 14px; border: none; border-radius: 0 6px 6px 0;
    background: var(--wf-primary); color: #fff; font-size: 13px; cursor: pointer;
}

/* ---------- 分类 chips ---------- */
.wf-chips { background: #fff; border-bottom: 1px solid var(--wf-line); }
.wf-chips-in { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.wf-chip {
    font-size: 13px; color: #3d4452; background: var(--wf-bg);
    padding: 5px 14px; border-radius: 999px; border: 1px solid transparent;
    transition: all .2s;
}
.wf-chip:hover { background: var(--wf-primary-soft); color: var(--wf-primary); border-color: var(--wf-primary); }

/* ---------- 面包屑 ---------- */
.wf-crumb { font-size: 12.5px; color: var(--wf-muted); padding: 12px 0 4px; }
.wf-crumb a { color: var(--wf-muted); }
.wf-crumb a:hover { color: var(--wf-primary); }
.wf-crumb-sep { margin: 0 8px; color: #b6bdca; }

/* ---------- 首页墙头 ---------- */
.wf-wall-head { padding: 18px 20px 14px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.wf-wall-h1 { font-size: 22px; font-weight: 700; color: var(--wf-text); }
.wf-wall-sub { font-size: 13px; color: var(--wf-muted); }

/* ---------- 瀑布流卡片墙 ---------- */
.wf-wall { column-count: 3; column-gap: 20px; padding: 8px 0 10px; }
.wf-card {
    background: var(--wf-card); border-radius: var(--wf-radius); overflow: hidden;
    margin-bottom: 20px; box-shadow: var(--wf-shadow);
    break-inside: avoid; transition: transform .25s ease, box-shadow .25s ease;
    position: relative;
}
.wf-card:hover { transform: translateY(-5px); box-shadow: var(--wf-shadow-hover); }
.wf-card-a { display: block; }
.wf-card-img img { width: 100%; height: auto; }
.wf-card-body { padding: 14px 16px 16px; }
.wf-card-tag {
    display: inline-block; font-size: 12px; color: var(--wf-primary);
    background: var(--wf-primary-soft); border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
}
.wf-card-title { font-size: 16px; font-weight: 600; line-height: 1.45; margin-bottom: 6px; color: var(--wf-text); }
.wf-card:hover .wf-card-title { color: var(--wf-primary); }
.wf-card-intro { font-size: 13px; color: var(--wf-muted); line-height: 1.7; }
.wf-card-meta { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--wf-line); font-size: 12px; color: #9aa1af; display: flex; gap: 12px; }
.wf-card-rec { color: #e8590c; margin-right: 6px; }
.wf-new {
    position: absolute; top: 10px; right: 10px; background: #e8590c; color: #fff;
    font-size: 11px; padding: 2px 8px; border-radius: 4px; z-index: 2;
}

/* ---------- 底部精选横幅 ---------- */
.wf-banner {
    position: relative; border-radius: var(--wf-radius); overflow: hidden;
    margin: 14px 0 34px; min-height: 220px; display: flex; align-items: center;
}
.wf-banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.wf-banner-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,28,46,.82), rgba(20,28,46,.45)); }
.wf-banner-txt { position: relative; padding: 36px 44px; color: #fff; max-width: 640px; }
.wf-banner-txt h2 { font-size: 24px; margin-bottom: 10px; }
.wf-banner-txt p { font-size: 14px; color: #d6dcec; margin-bottom: 16px; }
.wf-banner-btn {
    display: inline-block; background: var(--wf-primary); color: #fff;
    padding: 9px 22px; border-radius: 999px; font-size: 14px; transition: background .2s;
}
.wf-banner-btn:hover { background: #2f4bc0; }

/* ---------- 列表页 ---------- */
.wf-list-head { padding: 20px 0 6px; }
.wf-list-title { font-size: 24px; font-weight: 700; }
.wf-list-desc { font-size: 13px; color: var(--wf-muted); margin-top: 6px; }

/* ---------- 分页 ---------- */
.wf-pagebar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 26px 0 40px; }
.wf-pagebar a, .wf-pagebar span {
    min-width: 36px; text-align: center; padding: 7px 12px; background: #fff;
    border-radius: 8px; font-size: 13.5px; color: #3d4452; box-shadow: var(--wf-shadow);
}
.wf-pagebar a:hover { background: var(--wf-primary-soft); color: var(--wf-primary); }
.wf-pagebar a.on { background: var(--wf-primary); color: #fff; }

/* ---------- 文章页 ---------- */
.wf-post {
    background: #fff; border-radius: var(--wf-radius); box-shadow: var(--wf-shadow);
    padding: 36px 40px; margin-top: 16px; max-width: 860px;
}
.wf-post-title { font-size: 26px; line-height: 1.4; margin-bottom: 14px; }
.wf-post-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--wf-muted); padding-bottom: 16px; border-bottom: 1px solid var(--wf-line); }
.wf-post-meta a { color: var(--wf-primary); }
.wf-post-intro {
    background: var(--wf-primary-soft); border-left: 3px solid var(--wf-primary);
    padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 14px; color: #3d4452; margin: 18px 0;
}
.wf-post-content { padding: 20px 0; font-size: 15.5px; line-height: 1.9; }
.wf-post-content img { border-radius: 8px; margin: 12px 0; }
.wf-post-content p { margin-bottom: 14px; }
.wf-post-copyright { margin-top: 24px; padding: 16px; background: var(--wf-bg); border-radius: 8px; font-size: 13px; color: var(--wf-muted); }
.wf-post-codeimg { width: 120px; height: 120px; margin-bottom: 8px; }
.wf-post-tags { margin-top: 18px; font-size: 13px; color: var(--wf-muted); }
.wf-related { margin: 30px 0 40px; }
.wf-related-title { font-size: 18px; margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--wf-primary); }
.wf-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.wf-rel-item {
    background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: var(--wf-shadow);
    transition: transform .2s, box-shadow .2s;
}
.wf-rel-item:hover { transform: translateY(-3px); box-shadow: var(--wf-shadow-hover); }
.wf-rel-item h3 { font-size: 14.5px; line-height: 1.5; margin-bottom: 6px; }
.wf-rel-item p { font-size: 12px; color: var(--wf-muted); }

/* ---------- 评论 ---------- */
.wf-comments { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--wf-line); }
.wf-comments h2 { font-size: 17px; margin-bottom: 16px; }
.wf-comment-item { padding: 12px 0; border-bottom: 1px dashed var(--wf-line); }
.wf-comment-head { font-size: 13px; color: var(--wf-muted); margin-bottom: 4px; }
.wf-comment-head b { color: var(--wf-text); margin-right: 8px; }
.wf-comment-content { font-size: 14px; }
.wf-commentpost { margin-top: 24px; }
.wf-commentpost h2 { font-size: 17px; margin-bottom: 14px; }
.wf-cf-row { margin-bottom: 12px; }
.wf-cf-row input, .wf-cf-row textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--wf-line); border-radius: 8px;
    font-size: 14px; outline: none; background: #fff;
}
.wf-cf-row input:focus, .wf-cf-row textarea:focus { border-color: var(--wf-primary); }
.wf-cf-row button {
    background: var(--wf-primary); color: #fff; border: none; padding: 10px 28px;
    border-radius: 8px; font-size: 14px; cursor: pointer;
}
.wf-comment-pagebar { margin-top: 12px; }

/* ---------- 模块 ---------- */
.wf-module { background: #fff; border-radius: 8px; padding: 16px; box-shadow: var(--wf-shadow); margin-bottom: 16px; }
.wf-module-title { font-size: 15px; margin-bottom: 10px; }

/* ---------- 404 ---------- */
.wf-404 { text-align: center; padding: 90px 20px 110px; }
.wf-404 h1 { font-size: 84px; color: var(--wf-primary); line-height: 1; margin-bottom: 16px; }
.wf-404 p { color: var(--wf-muted); margin-bottom: 24px; }
.wf-404-back {
    display: inline-block; background: var(--wf-primary); color: #fff;
    padding: 10px 28px; border-radius: 999px; font-size: 14px;
}

/* ---------- 页脚 ---------- */
.wf-footer { background: var(--wf-dark); color: #aab2c5; margin-top: 20px; }
.wf-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 40px 0 26px; }
.wf-footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.wf-footer-col p { font-size: 13px; line-height: 1.8; }
.wf-footer-nav { display: flex; flex-direction: column; gap: 8px; }
.wf-footer-nav a { font-size: 13px; color: #aab2c5; }
.wf-footer-nav a:hover { color: #fff; }
.wf-footer-copy { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0 26px; font-size: 12.5px; text-align: center; }

/* ---------- 回到顶部 ---------- */
.wf-top {
    position: fixed; right: 26px; bottom: 40px; width: 42px; height: 42px;
    border-radius: 50%; border: none; background: var(--wf-primary); color: #fff;
    font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s; box-shadow: var(--wf-shadow-hover);
}
.wf-top.show { opacity: 1; pointer-events: auto; }
.wf-top:hover { transform: translateY(-3px); }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .wf-wall { column-count: 2; }
    .wf-rel-grid { grid-template-columns: repeat(2, 1fr); }
    .wf-footer-grid { grid-template-columns: 1fr 1fr; }
    .wf-search { display: none; }
}
@media (max-width: 620px) {
    .wf-wall { column-count: 1; }
    .wf-header-in { gap: 14px; }
    .wf-rel-grid { grid-template-columns: 1fr; }
    .wf-footer-grid { grid-template-columns: 1fr; }
    .wf-post { padding: 22px 18px; }
    .wf-banner-txt { padding: 26px 22px; }
    .wf-banner-txt h2 { font-size: 19px; }
}
