/* ============================================================
   FoxBlog · ui.css
   组件：按钮 / 文章卡片 / 正文排版 / 目录 / 互动 / 评论 /
         相册 / 友情链接 / 分页 / 空状态 / 提示条
   ============================================================ */

/* ---------- 按钮 ---------- */
.fx-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 13px;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid var(--fx-border-strong);
    background: var(--fx-glass);
    color: var(--fx-text);
    overflow: hidden;
    transition: transform .28s cubic-bezier(.22, .8, .24, 1), box-shadow .28s, border-color .28s, color .28s;
}
.fx-btn svg { width: 16px; height: 16px; }
.fx-btn:hover { transform: translateY(-2px); box-shadow: var(--fx-shadow); border-color: var(--fx-accent); color: var(--fx-accent); }
.fx-btn:active { transform: translateY(0) scale(.98); }
.fx-btn.fx-btn-primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(120deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 55%, var(--fx-accent-2)));
    box-shadow: var(--fx-glow);
}
.fx-btn.fx-btn-primary:hover { color: #fff; filter: brightness(1.06); }
.fx-btn.fx-btn-ghost { border-color: transparent; background: transparent; color: var(--fx-text-2); }
.fx-btn.fx-btn-ghost:hover { background: var(--fx-accent-soft); color: var(--fx-accent); }
.fx-btn.fx-btn-sm { padding: 8px 15px; font-size: .84rem; border-radius: 11px; }
.fx-btn[disabled], .fx-btn.is-loading { opacity: .6; pointer-events: none; }

/* ---------- 文章卡片 ---------- */
.fx-posts { display: flex; flex-direction: column; gap: var(--fx-gap); }
.fx-post {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    transition: transform .38s cubic-bezier(.22, .8, .24, 1), box-shadow .38s, border-color .38s;
}
.fx-post:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); border-color: var(--fx-border-strong); }
.fx-post-cover {
    position: relative;
    overflow: hidden;
    background: var(--fx-bg-2);
    min-height: 100%;
}
.fx-post-cover img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.22, .8, .24, 1);
}
.fx-post:hover .fx-post-cover img { transform: scale(1.06); }
.fx-post-cover::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 58%, var(--fx-glass) 100%);
    opacity: .85;
}
.fx-post-body { padding: 22px 24px; display: flex; flex-direction: column; min-width: 0; }
.fx-post-title {
    font-family: var(--fx-font-display);
    font-size: 1.24rem;
    line-height: 1.45;
    margin-bottom: 10px;
}
.fx-post-title a { transition: color .25s; }
.fx-post:hover .fx-post-title a { color: var(--fx-accent); }
.fx-post-excerpt {
    color: var(--fx-text-2);
    font-size: .9rem;
    line-height: 1.78;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fx-post-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .78rem; color: var(--fx-text-3); }
.fx-post-foot span { display: inline-flex; align-items: center; gap: 5px; }
.fx-post-foot svg { width: 14px; height: 14px; opacity: .8; }
.fx-post-foot .fx-cat a { color: var(--fx-accent); }

/* 顶部固定封面（列表首篇） */
.fx-post.fx-post-feature { grid-template-columns: minmax(0, 1fr); }
.fx-post.fx-post-feature .fx-post-cover { height: 300px; }
.fx-post.fx-post-feature .fx-post-cover::after { background: linear-gradient(180deg, transparent 52%, var(--fx-glass) 100%); }
.fx-post.fx-post-feature .fx-post-title { font-size: 1.62rem; }

/* 元信息药丸 */
.fx-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fx-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 99px;
    font-size: .76rem;
    color: var(--fx-text-3);
    border: 1px solid var(--fx-border);
    background: var(--fx-glass);
}
.fx-pill svg { width: 13px; height: 13px; }
.fx-pill.fx-pill-accent { color: var(--fx-accent); border-color: color-mix(in srgb, var(--fx-accent) 34%, transparent); background: var(--fx-accent-soft); }

/* ---------- 归档标题 ---------- */
.fx-archive-head {
    margin-bottom: 26px;
    padding: 26px 26px 22px;
}
.fx-archive-head h1 {
    font-family: var(--fx-font-display);
    font-size: clamp(1.5rem, 3.4vw, 2rem);
    margin-bottom: 8px;
}
.fx-archive-head .fx-sub { font-size: .86rem; color: var(--fx-text-3); }

/* ---------- 文章详情 ---------- */
.fx-article-head { padding: 40px 40px 30px; margin-bottom: var(--fx-gap); }
.fx-article-head h1 {
    font-family: var(--fx-font-display);
    font-size: clamp(1.72rem, 4.2vw, 2.5rem);
    line-height: 1.32;
    margin-bottom: 18px;
}
.fx-article { padding: 42px 44px 34px; }
.fx-article.narrow { padding: 34px 30px; }

/* 正文排版 */
.fx-prose { font-size: 1rem; line-height: 1.92; color: var(--fx-text-2); word-wrap: break-word; }
.fx-prose > *:first-child { margin-top: 0; }
.fx-prose h1, .fx-prose h2, .fx-prose h3, .fx-prose h4 {
    color: var(--fx-text);
    font-family: var(--fx-font-display);
    margin: 2em 0 .8em;
    scroll-margin-top: calc(var(--fx-nav-h) + 20px);
}
.fx-prose h2 { font-size: 1.42rem; padding-bottom: .4em; border-bottom: 1px solid var(--fx-border); }
.fx-prose h3 { font-size: 1.18rem; }
.fx-prose h4 { font-size: 1.05rem; }
.fx-prose a { color: var(--fx-accent); border-bottom: 1px solid color-mix(in srgb, var(--fx-accent) 40%, transparent); transition: border-color .25s, background-color .25s; }
.fx-prose a:hover { border-color: var(--fx-accent); background: var(--fx-accent-soft); }
.fx-prose strong { color: var(--fx-text); font-weight: 700; }
.fx-prose img {
    border-radius: var(--fx-radius);
    margin: 1.6em auto;
    box-shadow: var(--fx-shadow);
    border: 1px solid var(--fx-border);
}
.fx-prose blockquote {
    margin: 1.6em 0;
    padding: 16px 22px;
    border-left: 3px solid var(--fx-accent);
    border-radius: 0 var(--fx-radius-s) var(--fx-radius-s) 0;
    background: var(--fx-accent-soft);
    color: var(--fx-text-2);
}
.fx-prose blockquote p:last-child { margin-bottom: 0; }
.fx-prose code {
    font-family: var(--fx-font-mono);
    font-size: .88em;
    padding: .18em .45em;
    border-radius: 6px;
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
    border: 1px solid var(--fx-border);
}
.fx-prose pre {
    margin: 1.6em 0;
    padding: 18px 20px;
    border-radius: var(--fx-radius-s);
    background: var(--fx-bg-2);
    border: 1px solid var(--fx-border);
    overflow-x: auto;
    line-height: 1.7;
}
.fx-prose pre code { background: none; border: 0; padding: 0; color: var(--fx-text); font-size: .86rem; }
.fx-prose ul, .fx-prose ol { margin: 1.1em 0; padding-left: 1.5em; }
.fx-prose ul { list-style: none; }
.fx-prose ul > li { position: relative; }
.fx-prose ul > li::before {
    content: "";
    position: absolute;
    left: -1.1em; top: .82em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--fx-accent);
    opacity: .7;
}
.fx-prose ol { list-style: decimal; }
.fx-prose li { margin: .5em 0; }
.fx-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    font-size: .9rem;
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-s);
    overflow: hidden;
}
.fx-prose th, .fx-prose td { padding: 11px 14px; border-bottom: 1px solid var(--fx-border); text-align: left; }
.fx-prose thead th { background: var(--fx-accent-soft); color: var(--fx-text); font-weight: 600; }
.fx-prose tbody tr:last-child td { border-bottom: 0; }
.fx-prose tbody tr:hover { background: var(--fx-bg-2); }
.fx-prose hr { margin: 2.4em 0; }
.fx-prose .fx-img-caption { text-align: center; font-size: .78rem; color: var(--fx-text-3); margin-top: -.8em; }

/* 文章底部互动条 */
.fx-post-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px dashed var(--fx-border);
}
.fx-like {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 99px;
    border: 1px solid color-mix(in srgb, var(--fx-accent) 40%, transparent);
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
    font-weight: 600;
    font-size: .92rem;
    overflow: visible;
    transition: transform .28s cubic-bezier(.22, .8, .24, 1), box-shadow .28s;
}
.fx-like svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.22, 1.4, .36, 1); }
.fx-like:hover { transform: translateY(-2px); box-shadow: var(--fx-glow); }
.fx-like:hover svg { transform: scale(1.18); }
.fx-like.is-liked { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 55%, var(--fx-accent-2))); box-shadow: var(--fx-glow); }
.fx-like.is-liked svg { animation: fx-pop .5s cubic-bezier(.22, 1.5, .36, 1); }
@keyframes fx-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.32); } 100% { transform: scale(1); } }

/* 点赞飘心 */
.fx-heart {
    position: fixed;
    font-size: 18px;
    pointer-events: none;
    z-index: 90;
    animation: fx-heart-fly 1.05s ease-out forwards;
}
@keyframes fx-heart-fly {
    0%   { opacity: 1; transform: translate(0, 0) scale(.7); }
    100% { opacity: 0; transform: translate(var(--dx, 0), -96px) scale(1.4) rotate(var(--rot, 18deg)); }
}

/* ---------- 目录 ---------- */
.fx-toc {
    position: sticky;
    top: calc(var(--fx-nav-h) + 16px);
    padding: 18px 20px;
    max-height: calc(100vh - var(--fx-nav-h) - 40px);
    overflow-y: auto;
}
.fx-toc h4 { font-size: .86rem; margin-bottom: 12px; color: var(--fx-text); font-family: var(--fx-font-display); }
.fx-toc ol { display: flex; flex-direction: column; gap: 1px; counter-reset: fx-toc; }
.fx-toc a {
    display: block;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: .82rem;
    color: var(--fx-text-3);
    border-left: 2px solid transparent;
    transition: all .22s;
    line-height: 1.5;
}
.fx-toc a:hover { color: var(--fx-text); background: var(--fx-accent-soft); }
.fx-toc a.is-active { color: var(--fx-accent); border-left-color: var(--fx-accent); background: var(--fx-accent-soft); font-weight: 600; }
.fx-toc a.fx-toc-l3 { padding-left: 22px; font-size: .78rem; }
.fx-postlayout { display: grid; grid-template-columns: minmax(0, 1fr) 246px; gap: var(--fx-gap); align-items: start; }
.fx-postlayout.fx-noside { grid-template-columns: minmax(0, 1fr); }

/* 上下篇 */
.fx-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: var(--fx-gap); }
.fx-prevnext a {
    padding: 18px 20px;
    transition: transform .3s, border-color .3s;
}
.fx-prevnext a:hover { transform: translateY(-3px); border-color: var(--fx-accent); }
.fx-prevnext .fx-pn-label { font-size: .74rem; color: var(--fx-text-3); display: block; margin-bottom: 6px; }
.fx-prevnext .fx-pn-title {
    font-size: .92rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fx-prevnext .fx-next { text-align: right; }

/* ---------- 评论区 ---------- */
.fx-comments { margin-top: var(--fx-gap); padding: 32px 34px; }
.fx-comments-head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.fx-comments-head h3 { font-family: var(--fx-font-display); font-size: 1.18rem; }
.fx-comment-list { display: flex; flex-direction: column; }
.fx-comment {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px dashed var(--fx-border);
    animation: fx-fade-up .5s cubic-bezier(.22, .8, .24, 1) both;
}
.fx-comment:last-child { border-bottom: 0; }
@keyframes fx-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fx-comment > .fx-comment-main { min-width: 0; flex: 1; }
.fx-comment > img, .fx-comment > .fx-comment-avatar {
    flex: none;
    width: 44px; height: 44px;
    border-radius: 14px;
    border: 1px solid var(--fx-border);
    background: var(--fx-bg-2);
    object-fit: cover;
}
.fx-comment-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.fx-comment-head .fx-author { font-weight: 600; font-size: .92rem; color: var(--fx-text); }
.fx-comment-head .fx-role {
    font-size: .68rem;
    padding: 1px 7px;
    border-radius: 99px;
    color: var(--fx-accent);
    background: var(--fx-accent-soft);
    border: 1px solid color-mix(in srgb, var(--fx-accent) 32%, transparent);
}
.fx-comment-head .fx-time { font-size: .74rem; color: var(--fx-text-3); margin-left: auto; }
.fx-comment-body { font-size: .9rem; line-height: 1.78; color: var(--fx-text-2); }
.fx-comment-body p:last-child { margin-bottom: 0; }
.fx-comment-body img { max-width: 220px; border-radius: 10px; margin: 8px 0; }
.fx-comment-ops { margin-top: 8px; display: flex; gap: 14px; font-size: .78rem; }
.fx-comment-ops a { color: var(--fx-text-3); }
.fx-comment-ops a:hover { color: var(--fx-accent); }
.fx-comment-children {
    margin-top: 6px;
    padding-left: 18px;
    border-left: 2px solid var(--fx-border);
}
.fx-comment-children .fx-comment { border-bottom: 0; padding: 12px 0; }
.fx-comment .fx-comment { padding-top: 12px; }

/* 评论表单 */
.fx-respond { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--fx-border); }
.fx-respond h4 { font-family: var(--fx-font-display); margin-bottom: 16px; }
.fx-field { margin-bottom: 14px; }
.fx-field label { display: block; font-size: .8rem; color: var(--fx-text-3); margin-bottom: 7px; }
.fx-input, .fx-textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    background: var(--fx-glass);
    color: var(--fx-text);
    font-size: .92rem;
    transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.fx-input::placeholder, .fx-textarea::placeholder { color: var(--fx-text-3); opacity: .7; }
.fx-input:focus, .fx-textarea:focus {
    outline: 0;
    border-color: var(--fx-accent);
    box-shadow: 0 0 0 3px var(--fx-accent-soft);
    background: var(--fx-glass-strong);
}
.fx-textarea { min-height: 132px; resize: vertical; line-height: 1.75; }
.fx-field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fx-respond-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.fx-respond-foot .fx-hint { font-size: .76rem; color: var(--fx-text-3); margin-left: auto; }
.fx-preview {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px dashed var(--fx-border-strong);
    background: var(--fx-bg-2);
    font-size: .88rem;
    max-height: 260px;
    overflow-y: auto;
}
.fx-preview:empty { display: none; }
.fx-preview h1, .fx-preview h2, .fx-preview h3 { font-size: 1rem; margin: .6em 0 .3em; color: var(--fx-text); }
.fx-preview p { margin: 0 0 .6em; }
.fx-preview code { font-family: var(--fx-font-mono); background: var(--fx-accent-soft); padding: 1px 5px; border-radius: 5px; font-size: .85em; }
.fx-preview a { color: var(--fx-accent); }
.fx-preview blockquote { border-left: 3px solid var(--fx-accent); margin: .6em 0; padding-left: 12px; color: var(--fx-text-3); }
.fx-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.fx-tab {
    padding: 6px 13px;
    border-radius: 9px;
    font-size: .8rem;
    color: var(--fx-text-3);
    border: 1px solid transparent;
}
.fx-tab.is-active { color: var(--fx-accent); background: var(--fx-accent-soft); border-color: color-mix(in srgb, var(--fx-accent) 30%, transparent); }

/* ---------- 相册 ---------- */
.fx-album {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 16px;
}
.fx-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    border-radius: var(--fx-radius);
    overflow: hidden;
    border: 1px solid var(--fx-border);
    background: var(--fx-bg-2);
    box-shadow: var(--fx-shadow);
    transition: transform .42s cubic-bezier(.22, .8, .24, 1), box-shadow .42s;
}
.fx-photo:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--fx-shadow-lg); }
.fx-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.fx-photo:hover img { transform: scale(1.07); }
.fx-photo-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 30px 15px 14px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
    color: #fff;
    font-size: .84rem;
    transform: translateY(6px);
    opacity: 0;
    transition: all .35s cubic-bezier(.22, .8, .24, 1);
}
.fx-photo:hover .fx-photo-cap { transform: none; opacity: 1; }
.fx-photo-cap small { display: block; font-size: .72rem; opacity: .78; margin-top: 3px; }
.fx-photo-zoom {
    position: absolute;
    top: 12px; right: 12px;
    width: 34px; height: 34px;
    border-radius: 11px;
    display: grid; place-items: center;
    background: rgba(0, 0, 0, .42);
    backdrop-filter: blur(8px);
    color: #fff;
    opacity: 0;
    transform: scale(.8);
    transition: all .32s cubic-bezier(.22, .8, .24, 1);
}
.fx-photo:hover .fx-photo-zoom { opacity: 1; transform: none; }

/* 相册分组 */
.fx-album-group { margin-bottom: 40px; }
.fx-album-group > .fx-group-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.fx-album-group > .fx-group-head h3 { font-family: var(--fx-font-display); font-size: 1.1rem; }
.fx-album-group > .fx-group-head .fx-line { flex: 1; height: 1px; background: var(--fx-border); }

/* ---------- 友情链接 ---------- */
.fx-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
.fx-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    transition: transform .35s cubic-bezier(.22, .8, .24, 1), box-shadow .35s, border-color .35s;
}
.fx-link:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); border-color: var(--fx-border-strong); }
.fx-link img, .fx-link .fx-link-ico {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid var(--fx-border);
    background: var(--fx-accent-soft);
}
.fx-link .fx-link-ico { display: grid; place-items: center; font-family: var(--fx-font-display); font-size: 1.1rem; color: var(--fx-accent); font-weight: 700; }
.fx-link-info { min-width: 0; }
.fx-link-info b { display: block; font-size: .96rem; margin-bottom: 3px; font-family: var(--fx-font-display); }
.fx-link-info span {
    display: block;
    font-size: .78rem;
    color: var(--fx-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fx-link-info em { display: block; font-style: normal; font-size: .72rem; color: var(--fx-text-3); opacity: .8; margin-top: 2px; }
.fx-link-arrow { margin-left: auto; color: var(--fx-text-3); transition: transform .3s, color .3s; }
.fx-link:hover .fx-link-arrow { transform: translate(3px, -3px); color: var(--fx-accent); }

/* 友链申请说明 */
.fx-note {
    margin-top: 22px;
    padding: 20px 22px;
    font-size: .87rem;
    color: var(--fx-text-2);
    line-height: 1.85;
}
.fx-note h4 { margin-bottom: 8px; font-family: var(--fx-font-display); }

/* ---------- 分页 ---------- */
.fx-pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.fx-pager a, .fx-pager span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--fx-border);
    background: var(--fx-glass);
    font-size: .86rem;
    color: var(--fx-text-2);
    transition: all .26s;
}
.fx-pager a:hover { color: var(--fx-accent); border-color: var(--fx-accent); transform: translateY(-2px); }
.fx-pager .fx-cur { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 55%, var(--fx-accent-2))); box-shadow: var(--fx-glow); }
.fx-pager .fx-gap { border: 0; background: none; }

/* ---------- 空状态 / 404 ---------- */
.fx-empty { text-align: center; padding: 62px 24px; }
.fx-empty .fx-empty-ico {
    width: 74px; height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    display: grid; place-items: center;
    background: var(--fx-accent-soft);
    color: var(--fx-accent);
    border: 1px solid color-mix(in srgb, var(--fx-accent) 26%, transparent);
}
.fx-empty .fx-empty-ico svg { width: 32px; height: 32px; }
.fx-empty h3 { font-family: var(--fx-font-display); margin-bottom: 8px; font-size: 1.1rem; }
.fx-empty p { color: var(--fx-text-3); font-size: .88rem; margin-bottom: 18px; }
.fx-404-code {
    font-family: var(--fx-font-display);
    font-size: clamp(4.4rem, 16vw, 8.5rem);
    line-height: 1;
    letter-spacing: .04em;
}

/* ---------- 提示条 ---------- */
.fx-toast {
    position: fixed;
    left: 50%; bottom: 32px;
    transform: translate(-50%, 22px);
    z-index: 95;
    padding: 12px 22px;
    border-radius: 14px;
    background: var(--fx-glass-strong);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--fx-border-strong);
    box-shadow: var(--fx-shadow-lg);
    font-size: .88rem;
    opacity: 0;
    visibility: hidden;
    transition: all .35s cubic-bezier(.22, .8, .24, 1);
}
.fx-toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* 评论提示信息（Typecho 原生结构兼容） */
.fx-comment-note {
    padding: 11px 16px;
    border-radius: 11px;
    font-size: .84rem;
    margin-bottom: 14px;
    border: 1px solid var(--fx-border);
    background: var(--fx-accent-soft);
    color: var(--fx-text-2);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .fx-postlayout { grid-template-columns: minmax(0, 1fr); }
    .fx-toc { position: static; max-height: none; margin-bottom: var(--fx-gap); }
}
@media (max-width: 860px) {
    .fx-post { grid-template-columns: minmax(0, 1fr); }
    .fx-post-cover { height: 200px; min-height: 0; }
    .fx-post-cover::after { background: linear-gradient(180deg, transparent 55%, var(--fx-glass) 100%); }
    .fx-post.fx-post-feature .fx-post-cover { height: 220px; }
    .fx-article-head, .fx-article, .fx-comments { padding-left: 22px; padding-right: 22px; }
    .fx-field-grid { grid-template-columns: minmax(0, 1fr); }
    .fx-album { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .fx-prevnext { grid-template-columns: minmax(0, 1fr); }
    .fx-comment-head .fx-time { margin-left: 0; }
}

/* ============================================================
   适配与补充：Typecho 原生标签结构
   ============================================================ */

/* 计数药丸（通用） */
.fx-count {
    font-size: .78rem;
    color: var(--fx-text-3);
    padding: 2px 9px;
    border-radius: 99px;
    border: 1px solid var(--fx-border);
    background: var(--fx-glass);
}

/* 分页（Typecho 生成 ul.page-navigator） */
.fx-pager ul,
.fx-pager .page-navigator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fx-pager li { list-style: none; }
.fx-pager .current span,
.fx-pager .current a {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(120deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 55%, var(--fx-accent-2)));
    box-shadow: var(--fx-glow);
}
.fx-pager .prev a, .fx-pager .next a { color: var(--fx-text-2); }

/* 上一篇 / 下一篇卡片 */
.fx-prevnext > div {
    padding: 18px 20px;
    transition: transform .3s cubic-bezier(.22, .8, .24, 1), border-color .3s, box-shadow .3s;
}
.fx-prevnext > div:hover { transform: translateY(-3px); border-color: var(--fx-accent); box-shadow: var(--fx-shadow-lg); }
.fx-prevnext > div > a { display: block; }
.fx-prevnext .fx-pn-title a { color: inherit; }
.fx-prevnext > div:hover .fx-pn-title { color: var(--fx-accent); }
.fx-prevnext.fx-prevnext a { padding: 0; }

/* 评论（Typecho 原生 ol.comment-list / li.comment-body） */
.fx-comments .comment-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}
.fx-comments .comment-list .comment-list { margin-top: 2px; }
.fx-comments .comment-body {
    display: flex;
    flex-wrap: wrap;
    column-gap: 12px;
    padding: 17px 0;
    border-bottom: 1px dashed var(--fx-border);
    animation: fx-fade-up .5s cubic-bezier(.22, .8, .24, 1) both;
}
.fx-comments .comment-list > .comment-body:last-child { border-bottom: 0; }
.fx-comments .comment-author {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 1 auto;
    min-width: 0;
}
.fx-comments .comment-author > span { display: block; }
.fx-comments .comment-author .avatar {
    width: 42px; height: 42px;
    border-radius: 14px;
    border: 1px solid var(--fx-border);
    background: var(--fx-bg-2);
    object-fit: cover;
    transition: transform .35s cubic-bezier(.22, .8, .24, 1);
}
.fx-comments .comment-body:hover .comment-author .avatar { transform: scale(1.06) rotate(-2deg); }
.fx-comments .comment-author .fn {
    font-style: normal;
    font-weight: 600;
    font-size: .93rem;
    color: var(--fx-text);
}
.fx-comments .comment-meta {
    margin-left: auto;
    align-self: center;
    font-size: .74rem;
    color: var(--fx-text-3);
    white-space: nowrap;
}
.fx-comments .comment-awaiting-moderation { color: var(--fx-accent); font-style: normal; margin-left: 6px; }
.fx-comments .comment-content {
    flex: 1 1 100%;
    margin-top: 9px;
    font-size: .9rem;
    line-height: 1.8;
    color: var(--fx-text-2);
    word-wrap: break-word;
}
.fx-comments .comment-content p:last-child { margin-bottom: 0; }
.fx-comments .comment-content img { max-width: 220px; border-radius: 10px; margin: 8px 0; }
.fx-comments .comment-content a { color: var(--fx-accent); }
.fx-comments .comment-content code {
    font-family: var(--fx-font-mono);
    font-size: .86em;
    padding: 1px 6px;
    border-radius: 5px;
    background: var(--fx-accent-soft);
}
.fx-comments .comment-reply { flex: 1 1 100%; margin-top: 7px; font-size: .78rem; }
.fx-comments .comment-reply a { color: var(--fx-text-3); transition: color .22s; }
.fx-comments .comment-reply a:hover { color: var(--fx-accent); }
.fx-comments .comment-children {
    flex: 1 1 100%;
    margin-top: 10px;
    padding-left: 16px;
    border-left: 2px solid var(--fx-border);
}
.fx-comments .comment-children .comment-body { padding: 12px 0; }
.fx-comments .comment-by-author .fn::after {
    content: "博主";
    display: inline-block;
    margin-left: 7px;
    padding: 1px 7px;
    border-radius: 99px;
    font-size: .66rem;
    font-weight: 500;
    color: var(--fx-accent);
    background: var(--fx-accent-soft);
    border: 1px solid color-mix(in srgb, var(--fx-accent) 30%, transparent);
    vertical-align: middle;
}
.fx-cancel-reply a { color: var(--fx-accent); }

/* 归档/相册头的计数与说明 */
.fx-archive-head .fx-count { margin-left: 8px; }
.fx-album-group .fx-group-head .fx-count { margin-left: 0; }
.fx-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fx-group-head h3 { font-family: var(--fx-font-display); font-size: 1.1rem; }
.fx-group-head .fx-line { flex: 1; height: 1px; background: var(--fx-border); }

/* 正文内联图标对齐 */
.fx-post-foot svg, .fx-pill svg, .fx-prose svg { vertical-align: -2px; }

/* 归档列表 */
.fx-archive-list { padding: 6px 22px; }
.fx-archive-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--fx-border);
}
.fx-archive-list li:last-child { border-bottom: 0; }
.fx-ar-date {
    flex: none;
    width: 52px;
    font-family: var(--fx-font-mono);
    font-size: .78rem;
    color: var(--fx-text-3);
    letter-spacing: .02em;
}
.fx-ar-title {
    flex: 1;
    min-width: 0;
    font-size: .94rem;
    color: var(--fx-text-2);
    transition: color .22s, transform .22s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fx-ar-title:hover { color: var(--fx-accent); transform: translateX(3px); }
.fx-ar-meta {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .75rem;
    color: var(--fx-text-3);
}
.fx-ar-meta svg { width: 13px; height: 13px; }

/* ============================================================
   首页分区：图库 / 友情链接 / 联系方式
   ============================================================ */
.fx-home-section { margin-bottom: 58px; scroll-margin-top: calc(var(--fx-nav-h) + 18px); }
.fx-home-section:last-child { margin-bottom: 10px; }

.fx-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    gap: 16px;
}
.fx-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    transition: transform .35s cubic-bezier(.22, .8, .24, 1), box-shadow .35s, border-color .35s;
}
.fx-contact:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); border-color: var(--fx-border-strong); }
.fx-contact-ico {
    flex: none;
    width: 46px; height: 46px;
    border-radius: 14px;
    display: grid; place-items: center;
    color: var(--fx-accent);
    background: var(--fx-accent-soft);
    border: 1px solid color-mix(in srgb, var(--fx-accent) 26%, transparent);
}
.fx-contact-ico svg { width: 20px; height: 20px; }
.fx-contact-info { min-width: 0; }
.fx-contact-info b { display: block; font-size: .92rem; margin-bottom: 2px; font-family: var(--fx-font-display); }
.fx-contact-info span {
    display: block;
    font-size: .82rem;
    color: var(--fx-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 侧栏列表：无链接的纯展示行 */
.fx-side-list > li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: .89rem;
    color: var(--fx-text-2);
    border-bottom: 1px dashed var(--fx-border);
}
.fx-side-list > li:last-child { border-bottom: 0; }
.fx-side-list > li .fx-date { margin-left: auto; color: var(--fx-text-3); font-size: .84rem; }

/* ============================================================
   流量统计页
   ============================================================ */
.fx-panel { padding: 26px 26px 24px; }
.fx-panel + .fx-panel { margin-top: var(--fx-gap); }

.fx-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 1px;
    background: var(--fx-border);
    border: 1px solid var(--fx-border);
    border-radius: var(--fx-radius-s);
    overflow: hidden;
    margin-bottom: 22px;
}
.fx-stat { background: var(--fx-glass-strong); padding: 18px 14px; text-align: center; }
.fx-stat b {
    display: block;
    font-family: var(--fx-font-display);
    font-size: 1.62rem;
    line-height: 1.2;
    color: var(--fx-text);
}
.fx-stat i { font-style: normal; font-size: .72rem; color: var(--fx-text-3); margin-left: 3px; }
.fx-stat span { display: block; font-size: .78rem; color: var(--fx-text-2); margin-top: 5px; }
.fx-stat em { display: block; font-style: normal; font-size: .68rem; color: var(--fx-text-3); opacity: .8; margin-top: 3px; }

/* 面板小标题 */
.fx-panel-title {
    font-family: var(--fx-font-display);
    font-size: 1.02rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.fx-panel-title::before {
    content: "";
    width: 4px; height: .95em;
    border-radius: 2px;
    background: linear-gradient(var(--fx-accent), var(--fx-accent-2));
}

/* 30 天访问趋势折线图 */
.fx-chart-wrap { position: relative; }
.fx-linechart { display: block; width: 100%; height: 200px; }
.fx-chart-wrap .fx-linechart { cursor: crosshair; }
.fx-lc-grid { stroke: var(--fx-border); stroke-width: 1; stroke-dasharray: 4 5; }
.fx-lc-hit { fill: transparent; pointer-events: all; }
.fx-lc-area { fill: var(--fx-accent); opacity: .12; }
.fx-lc-line {
    fill: none;
    stroke: var(--fx-accent);
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
}
.fx-lc-guide {
    stroke: var(--fx-accent);
    stroke-width: 1;
    stroke-dasharray: 3 3;
    opacity: .55;
    vector-effect: non-scaling-stroke;
}
.fx-lc-dot {
    fill: var(--fx-accent);
    stroke: var(--fx-surface);
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}
.fx-chart-tip {
    position: absolute;
    top: 6px;
    z-index: 5;
    pointer-events: none;
    padding: 9px 13px;
    border-radius: 12px;
    background: var(--fx-glass-strong);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid var(--fx-border-strong);
    box-shadow: var(--fx-shadow-lg);
    font-size: .78rem;
    line-height: 1.65;
    white-space: nowrap;
    transition: left .12s linear;
}
.fx-chart-tip b {
    display: block;
    font-family: var(--fx-font-display);
    font-size: .84rem;
    color: var(--fx-text);
    margin-bottom: 3px;
}
.fx-chart-tip span { display: block; color: var(--fx-text-2); }
.fx-chart-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    font-size: .74rem;
    color: var(--fx-text-3);
    flex-wrap: wrap;
}

/* 占用率仪表 */
.fx-gauge { display: flex; flex-direction: column; gap: 17px; }
.fx-gauge-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-size: .86rem;
    color: var(--fx-text-2);
    margin-bottom: 7px;
}
.fx-gauge-head b { font-family: var(--fx-font-display); font-size: 1rem; color: var(--fx-text); }
.fx-gauge-track {
    height: 10px;
    border-radius: 99px;
    background: var(--fx-bg-2);
    border: 1px solid var(--fx-border);
    overflow: hidden;
}
.fx-gauge-fill {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--fx-accent), color-mix(in srgb, var(--fx-accent) 40%, var(--fx-accent-2)));
}
.fx-gauge-fill.is-warn { background: linear-gradient(90deg, #e8a020, #dd5a17); }
.fx-gauge-note { font-size: .73rem; color: var(--fx-text-3); margin: 6px 0 0; line-height: 1.7; }

/* 数据表 */
.fx-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.fx-table th, .fx-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fx-border);
    text-align: left;
    vertical-align: top;
}
.fx-table thead th { background: var(--fx-accent-soft); color: var(--fx-text); font-weight: 600; }
.fx-table tbody th { width: 40%; color: var(--fx-text-2); font-weight: 400; }
.fx-table tbody tr:last-child th,
.fx-table tbody tr:last-child td { border-bottom: 0; }
.fx-table tbody tr:hover { background: var(--fx-bg-2); }

.fx-mono { font-family: var(--fx-font-mono); font-size: .82rem; color: var(--fx-text-2); }
.fx-panel-note { font-size: .78rem; color: var(--fx-text-3); line-height: 1.8; margin: 16px 0 0; }

/* ---------- 世界地图（访客来源） ---------- */
.fx-worldmap-wrap { margin-bottom: 18px; }

.fx-worldmap {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.fx-worldmap [data-cc] {
    fill: var(--fx-map-base);
    stroke: var(--fx-map-line);
    stroke-width: .35;
    vector-effect: non-scaling-stroke;
}
.fx-worldmap [data-cc]:hover {
    stroke: var(--fx-accent);
    stroke-width: .9;
}

.fx-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}
.fx-map-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .86rem;
    color: var(--fx-text-2);
}
.fx-map-legend-item b { color: var(--fx-text); font-weight: 600; }
.fx-map-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}

@media (max-width: 640px) {
    .fx-panel { padding: 20px 16px; }
    .fx-linechart { height: 150px; }
    .fx-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-table tbody th { width: 44%; }
    .fx-worldmap { min-height: 220px; }
}
