@charset "utf-8";
:root {
    --accent: 0, 229, 255;
    --accent-2: 77, 159, 255;
    --accent-3: 176, 108, 255;
    --c1: 248, 251, 255;
    --c2: 255, 214, 10;
    --c3: 0, 226, 140;
    --c4: 0, 168, 255;
    --c5: 255, 148, 37;
    --c6: 255, 72, 92;
    --bg: #060b14;
    --bg-grad: radial-gradient(ellipse at 50% 0%, rgba(0, 229, 255, 0.10), transparent 55%);
    --panel: rgba(9, 16, 27, 0.86);
    --panel-2: rgba(12, 21, 34, 0.72);
    --panel-solid: #0b1320;
    --line: rgba(0, 229, 255, 0.14);
    --line-strong: rgba(0, 229, 255, 0.36);
    --text: #e9eff7;
    --text-2: rgba(214, 232, 255, 0.70);
    --text-3: rgba(150, 182, 214, 0.48);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
    --grid: rgba(0, 229, 255, 0.13);
    --scan: rgba(0, 229, 255, 0.05);
    --radius: 8px;
    --radius-sm: 4px;
    --maxw: 1180px;
    --font: system-ui, -apple-system, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --mono: 'Cascadia Mono', 'Consolas', 'JetBrains Mono', 'Courier New', monospace;
    --display: 'Bahnschrift', 'DIN Alternate', 'Segoe UI', system-ui, sans-serif;
}
[data-theme="light"] {
    --accent: 0, 132, 180;
    --accent-2: 45, 108, 200;
    --accent-3: 130, 76, 200;
    --c1: 120, 134, 150;
    --c2: 200, 150, 0;
    --c3: 0, 158, 100;
    --c4: 0, 118, 200;
    --c5: 210, 105, 15;
    --c6: 214, 40, 66;
    --bg: #eef2f8;
    --bg-grad: radial-gradient(ellipse at 50% 0%, rgba(0, 132, 180, 0.10), transparent 55%);
    --panel: rgba(255, 255, 255, 0.92);
    --panel-2: rgba(255, 255, 255, 0.72);
    --panel-solid: #ffffff;
    --line: rgba(0, 90, 130, 0.16);
    --line-strong: rgba(0, 110, 155, 0.42);
    --text: #0b1a26;
    --text-2: rgba(18, 44, 66, 0.76);
    --text-3: rgba(28, 60, 88, 0.52);
    --shadow: 0 14px 40px rgba(20, 50, 80, 0.12);
    --grid: rgba(0, 110, 155, 0.10);
    --scan: rgba(0, 110, 155, 0.035);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    background-color: var(--bg);
    background-image: var(--bg-grad);
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text);
    font-size: 15px;
    line-height: 1.75;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    transition: background-color 0.35s, color 0.35s;
}
body::before {
    content: '';
    position: fixed;
    left: -60%;
    right: -60%;
    bottom: -12%;
    height: 130%;
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(520px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 58%);
    mask-image: linear-gradient(to top, #000 0%, transparent 58%);
    pointer-events: none;
    z-index: 0;
}
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: repeating-linear-gradient(
        180deg,
        var(--scan) 0px,
        var(--scan) 1px,
        transparent 1px,
        transparent 4px
    );
    opacity: 0.36;
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
}
a { color: rgb(var(--accent)); text-decoration: none; transition: color 0.25s, opacity 0.25s; }
a:hover { color: rgb(var(--accent-2)); }
img { max-width: 100%; height: auto; border: 0; vertical-align: middle; }
ul, ol { list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
:focus-visible {
    outline: 2px solid rgb(var(--accent));
    outline-offset: 2px;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(var(--accent), 0.28); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: rgba(var(--accent), 0.5); }
::selection { background: rgba(var(--accent), 0.35); color: #04121a; }
.zp-container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 22px;
}
.zp-main {
    flex: 1;
    position: relative;
    z-index: 1;
    padding: 26px 0 46px;
}
.zp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 26px;
    align-items: start;
}
.zp-row--single { grid-template-columns: minmax(0, 1fr); }
.zp-panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.zp-panel--corners::after {
    content: '';
    position: absolute;
    inset: 7px;
    pointer-events: none;
    opacity: 0.5;
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) left top / 14px 2px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) left top / 2px 14px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 14px 2px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) right bottom / 2px 14px no-repeat;
}
.zp-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
    padding: 3px 10px;
    border-radius: 2px;
    color: rgba(var(--accent), 0.92);
    background: rgba(var(--accent), 0.10);
    border: 1px solid rgba(var(--accent), 0.28);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%);
}
.zp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #04141c;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)));
    border: 0;
    border-radius: 0;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: filter 0.3s, transform 0.3s;
}
.zp-btn:hover { filter: brightness(1.12); transform: translateY(-2px); color: #04141c; }
.zp-btn--ghost {
    color: var(--text);
    background: rgba(var(--accent), 0.08);
    border: 1px solid rgba(var(--accent), 0.34);
}
.zp-btn--ghost:hover { color: rgb(var(--accent)); background: rgba(var(--accent), 0.16); }
.zp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--panel);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    transition: background-color 0.35s, border-color 0.35s;
}
.zp-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    /* 用 background-position 做扫光，不要用 translateX：
       transform 会把 scrollWidth 撑大，手机上会撑出横向滚动条（已踩过） */
    background-image: linear-gradient(90deg, transparent, rgba(var(--accent), 0.85), transparent);
    background-repeat: no-repeat;
    background-size: 50% 100%;
    animation: zp-hairline 5s linear infinite;
}
@keyframes zp-hairline {
    0%   { background-position: -100% 0; opacity: 0; }
    25%  { opacity: 1; }
    75%  { opacity: 1; }
    100% { background-position: 200% 0; opacity: 0; }
}
.zp-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 62px;
}
.zp-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.zp-brand-title {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)), rgb(var(--accent-3)), rgb(var(--accent)));
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: zp-shimmer 6s ease-in-out infinite;
}
@keyframes zp-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}
.zp-brand-dot {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background-image:
        linear-gradient(rgba(var(--accent), 0.9) 3px, transparent 3px),
        linear-gradient(rgba(var(--accent), 0.55) 3px, transparent 3px);
    background-size: 8px 3px, 8px 3px;
    background-position: 0 2px, 0 0;
    border: 1px solid rgba(var(--accent), 0.6);
    border-radius: 2px;
    box-shadow: 0 0 14px rgba(var(--accent), 0.4);
    position: relative;
    overflow: hidden;
}
.zp-brand-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(var(--accent), 0.75), rgba(var(--accent), 0.75)) center / 3px 100% no-repeat,
        linear-gradient(rgba(var(--accent), 0.75), rgba(var(--accent), 0.75)) center / 100% 3px no-repeat;
    opacity: 0.85;
}
.zp-brand img { max-height: 34px; }
.zp-nav {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.zp-nav a {
    position: relative;
    padding: 7px 15px;
    font-family: var(--display);
    font-size: 13px;
    letter-spacing: 1.2px;
    color: var(--text-2);
    background: rgba(var(--accent), 0.05);
    border: 1px solid rgba(var(--accent), 0.16);
    border-radius: 2px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    transition: all 0.3s;
}
.zp-nav a:hover {
    color: var(--text);
    background: rgba(var(--accent), 0.15);
    border-color: rgba(var(--accent), 0.5);
    box-shadow: 0 0 16px rgba(var(--accent), 0.2);
}
.zp-nav a.is-current {
    color: #04141c;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)));
    border-color: rgba(var(--accent), 0.95);
    font-weight: 700;
}
.zp-nav .zp-has-child { position: relative; }
.zp-nav .zp-sub {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 156px;
    padding: 6px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.25s;
    z-index: 20;
}
.zp-nav .zp-has-child:hover .zp-sub,
.zp-nav .zp-has-child:focus-within .zp-sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.zp-nav .zp-sub a {
    display: block;
    width: 100%;
    clip-path: none;
    border: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 2px;
}
.zp-nav .zp-sub a:hover { background: rgba(var(--accent), 0.14); }
.zp-header-tools {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.zp-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--text-2);
    border: 1px solid var(--line);
    border-radius: 2px;
    background: rgba(var(--accent), 0.05);
    transition: all 0.3s;
}
.zp-icon-btn:hover {
    color: rgb(var(--accent));
    border-color: var(--line-strong);
    background: rgba(var(--accent), 0.14);
}
.zp-icon-btn svg { width: 17px; height: 17px; }
.zp-menu-toggle { display: none; }
.zp-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 34px;
    padding-right: 9px;
    background: rgba(var(--accent), 0.05);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.2, 0.8, 0.3, 1),
                border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.zp-search::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgb(var(--accent)), rgba(var(--accent-2), 0.5));
    opacity: 0.45;
    transition: opacity 0.3s, box-shadow 0.3s;
}
.zp-search::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgb(var(--accent)), rgba(var(--accent-2), 0.25) 65%, transparent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.zp-search:focus-within {
    border-color: rgba(var(--accent), 0.5);
    background: rgba(var(--accent), 0.1);
    box-shadow: 0 0 0 1px rgba(var(--accent), 0.14), 0 0 22px rgba(var(--accent), 0.2);
}
.zp-search:focus-within::before { opacity: 1; box-shadow: 0 0 10px rgba(var(--accent), 0.9); }
.zp-search:focus-within::after { transform: scaleX(1); }
.zp-search-ico {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-left: 11px;
    color: var(--text-3);
    transition: color 0.3s, filter 0.3s;
}
.zp-search-ico svg { width: 100%; height: 100%; }
.zp-search:focus-within .zp-search-ico {
    color: rgb(var(--accent));
    filter: drop-shadow(0 0 6px rgba(var(--accent), 0.85));
}
.zp-search input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--text);
    background: none;
    border: 0;
    border-radius: 0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.zp-search input[type="search"]::placeholder { color: var(--text-3); }
.zp-search input[type="search"]::-webkit-search-cancel-button,
.zp-search input[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}
.zp-search-act {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 24px;
}
.zp-search-hint,
.zp-search-go,
.zp-search-clear {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 2px;
    transition: opacity 0.2s, transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.zp-search-hint {
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1;
    color: var(--text-3);
    background: rgba(var(--accent), 0.06);
    border: 1px solid var(--line);
}
.zp-search-go,
.zp-search-clear {
    border: 1px solid transparent;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.82);
    pointer-events: none;
}
.zp-search-go svg { width: 14px; height: 14px; }
.zp-search-clear svg { width: 10px; height: 10px; }
.zp-search-go {
    color: rgb(var(--accent));
    background: rgba(var(--accent), 0.16);
    border-color: rgba(var(--accent), 0.42);
}
.zp-search-go:hover { background: rgba(var(--accent), 0.3); }
.zp-search-clear {
    color: var(--text-2);
    background: rgba(var(--accent), 0.06);
    border-color: var(--line);
}
.zp-search-clear:hover { color: rgb(var(--accent)); border-color: rgba(var(--accent), 0.4); }
.zp-search input:not(:placeholder-shown) ~ .zp-search-act .zp-search-hint { opacity: 0; }
.zp-search input:not(:placeholder-shown) ~ .zp-search-act .zp-search-go {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.zp-search:focus-within input:not(:placeholder-shown) ~ .zp-search-act .zp-search-go {
    opacity: 0;
    transform: scale(0.82);
    pointer-events: none;
}
.zp-search:focus-within input:not(:placeholder-shown) ~ .zp-search-act .zp-search-clear {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}
.zp-search--nav { width: 178px; }
.zp-search--nav:focus-within { width: 216px; }
.zp-search--widget {
    width: 100%;
    height: 40px;
    gap: 10px;
    padding-right: 0;
}
.zp-search--widget .zp-search-ico { width: 16px; height: 16px; margin-left: 13px; }
.zp-search--widget input[type="search"] { font-size: 13.5px; }
.zp-search-submit {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 100%;
    padding: 0 15px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #04141c;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)));
    border: 0;
    border-radius: 0;
    clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
    cursor: pointer;
    transition: filter 0.25s;
}
.zp-search-submit svg { width: 14px; height: 14px; }
.zp-search-submit:hover { filter: brightness(1.12); }
.zp-slides {
    position: relative;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-solid);
}
.zp-slides .zp-slide { display: none; }
.zp-slides .zp-slide.is-active { display: block; }
.zp-slides .zp-slide img {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.zp-slides .zp-slide-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 34px 22px 16px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
}
.zp-slides-nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}
.zp-slides-nav button {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    font-size: 16px;
    color: #fff;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    transition: background 0.3s;
}
.zp-slides-nav button:hover { background: rgba(var(--accent), 0.75); color: #04141c; }
.zp-post {
    position: relative;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr);
    margin-bottom: 16px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s;
}
.zp-post:hover {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 1px rgba(var(--accent), 0.12), var(--shadow);
    transform: translateY(-2px);
}
.zp-post::before {
    content: '';
    display: block;
    background: linear-gradient(180deg, rgb(var(--fc)), rgba(var(--fc), 0.35));
    box-shadow: 0 0 18px rgba(var(--fc), 0.55);
    transition: box-shadow 0.35s;
}
.zp-post:hover::before { box-shadow: 0 0 26px rgba(var(--fc), 0.9); }
.zp-c1 { --fc: var(--c1); }
.zp-c2 { --fc: var(--c2); }
.zp-c3 { --fc: var(--c3); }
.zp-c4 { --fc: var(--c4); }
.zp-c5 { --fc: var(--c5); }
.zp-c6 { --fc: var(--c6); }
.zp-post-body { padding: 16px 20px 14px; min-width: 0; }
.zp-post-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 8px;
}
.zp-post-title {
    font-size: 17.5px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.4px;
}
.zp-post-title a { color: var(--text); }
.zp-post-title a:hover { color: rgb(var(--accent)); }
.zp-post-excerpt {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-2);
    margin-bottom: 12px;
    word-break: break-word;
}
.zp-post-cover {
    display: block;
    margin: -16px -20px 14px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.zp-post-cover img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.6s;
}
.zp-post:hover .zp-post-cover img { transform: scale(1.04); }
.zp-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.5px;
    color: var(--text-3);
    border-top: 1px dashed rgba(var(--accent), 0.16);
    padding-top: 10px;
}
.zp-post-meta a { color: var(--text-3); }
.zp-post-meta a:hover { color: rgb(var(--accent)); }
.zp-post-meta .zp-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.zp-post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zp-post-tags a {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.8px;
    padding: 2px 9px;
    color: rgba(var(--accent), 0.9);
    background: rgba(var(--accent), 0.09);
    border: 1px solid rgba(var(--accent), 0.24);
    border-radius: 2px;
}
.zp-post-tags a:hover { background: rgba(var(--accent), 0.2); color: rgb(var(--accent)); }
.zp-flag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1px;
    padding: 2px 8px;
    color: #04141c;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)));
    border-radius: 2px;
}
.zp-empty {
    padding: 60px 20px;
    text-align: center;
    font-family: var(--mono);
    color: var(--text-3);
    letter-spacing: 2px;
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
}
.zp-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 22px 0 4px;
    font-family: var(--mono);
    font-size: 12.5px;
}
.zp-pagination a,
.zp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    color: var(--text-2);
    background: rgba(var(--accent), 0.05);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: all 0.25s;
}
.zp-pagination a:hover {
    color: rgb(var(--accent));
    background: rgba(var(--accent), 0.14);
    border-color: var(--line-strong);
}
.zp-pagination .is-current,
.zp-pagination .current {
    color: #04141c;
    background: linear-gradient(100deg, rgb(var(--accent)), rgb(var(--accent-2)));
    border-color: transparent;
    font-weight: 700;
}
.zp-article {
    position: relative;
    padding: 30px 34px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.zp-article::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    /* 同上：扫光走 background-position，避免撑宽 scrollWidth */
    background-image: linear-gradient(90deg, transparent, rgba(var(--accent), 0.9), transparent);
    background-repeat: no-repeat;
    background-size: 50% 100%;
    animation: zp-scanx 5.5s linear infinite;
}
@keyframes zp-scanx {
    0%   { background-position: -100% 0; opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { background-position: 200% 0; opacity: 0; }
}
.zp-article-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    word-break: break-word;
}
.zp-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-3);
    border-bottom: 1px solid var(--line);
}
.zp-article-meta .zp-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.zp-article-meta a { color: var(--text-3); }
.zp-article-meta a:hover { color: rgb(var(--accent)); }
.zp-article-cover {
    margin: 0 0 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.zp-article-cover img { display: block; width: 100%; }
.zp-article-content { font-size: 15.5px; line-height: 1.95; color: var(--text); }
.zp-article-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.zp-article-tags a {
    font-family: var(--mono);
    font-size: 11px;
    padding: 3px 10px;
    color: rgba(var(--accent), 0.9);
    background: rgba(var(--accent), 0.09);
    border: 1px solid rgba(var(--accent), 0.26);
    border-radius: 2px;
}
.zp-neighbor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 26px;
}
.zp-neighbor a {
    display: block;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text-2);
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}
.zp-neighbor a:hover {
    color: rgb(var(--accent));
    border-color: var(--line-strong);
    background: rgba(var(--accent), 0.1);
}
.zp-neighbor .zp-nb-label {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--text-3);
    margin-bottom: 3px;
}
.zp-neighbor .zp-nb-next { text-align: right; }
.zp-sidebar {
    position: sticky;
    top: var(--side-top, 88px);
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: top 0.3s ease;
}
.zp-sidebar::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-image: linear-gradient(180deg,
        transparent 0,
        rgba(var(--accent), 0.9) 40%,
        rgba(var(--accent), 0.9) 60%,
        transparent 100%);
    background-size: 100% 140px;
    background-repeat: repeat-y;
    box-shadow: 0 0 10px rgba(var(--accent), 0.45);
    opacity: 0;
    transition: opacity 0.45s;
    pointer-events: none;
}
.zp-sidebar.is-stuck::after {
    opacity: 1;
    animation: zp-rail 4s linear infinite;
}
@keyframes zp-rail {
    from { background-position: 0 0; }
    to   { background-position: 0 280px; }
}
@keyframes zp-widget-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}
.zp-sidebar .zp-widget.is-in {
    animation: zp-widget-in 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.zp-widget {
    position: relative;
    padding: 16px 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.zp-widget-title {
    position: relative;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: rgba(var(--accent), 0.9);
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.zp-widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 42px;
    height: 2px;
    background: rgb(var(--accent));
    box-shadow: 0 0 10px rgba(var(--accent), 0.8);
}
.zp-widget ul li {
    position: relative;
    padding: 7px 0 7px 15px;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-2);
    border-bottom: 1px dashed rgba(var(--accent), 0.12);
}
.zp-widget ul li:last-child { border-bottom: 0; }
.zp-widget ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15px;
    width: 5px;
    height: 5px;
    background: rgba(var(--accent), 0.7);
    box-shadow: 0 0 8px rgba(var(--accent), 0.7);
}
.zp-widget ul li a { color: var(--text-2); }
.zp-widget ul li a:hover { color: rgb(var(--accent)); }
.zp-widget .zp-widget-count {
    float: right;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}
.zp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zp-stat {
    padding: 12px 10px;
    text-align: center;
    background: rgba(var(--accent), 0.06);
    border: 1px solid rgba(var(--accent), 0.18);
    border-radius: var(--radius-sm);
}
.zp-stat b {
    display: block;
    font-family: var(--mono);
    font-size: 19px;
    color: rgb(var(--accent));
    line-height: 1.3;
}
.zp-stat span {
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-3);
}
.zp-tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.zp-tagcloud a {
    font-size: 12px;
    padding: 3px 10px;
    color: var(--text-2);
    background: rgba(var(--accent), 0.07);
    border: 1px solid rgba(var(--accent), 0.2);
    border-radius: 2px;
}
.zp-tagcloud a:hover { color: rgb(var(--accent)); background: rgba(var(--accent), 0.18); }
.zp-calendar table { width: 100%; font-family: var(--mono); font-size: 12px; border-collapse: collapse; }
.zp-calendar th, .zp-calendar td { padding: 5px 2px; text-align: center; }
.zp-calendar th { color: var(--text-3); font-weight: 500; }
.zp-calendar td a { color: rgb(var(--accent)); font-weight: 700; }
.zp-calendar td span { color: var(--text-3); }
.zp-blogger { display: flex; align-items: center; gap: 12px; }
.zp-blogger img { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); }
.zp-blogger .zp-blogger-name { font-weight: 600; }
.zp-blogger .zp-blogger-desc { font-size: 12px; color: var(--text-3); }
.zp-comments { margin-top: 26px; }
.zp-comment-list { margin-bottom: 22px; }
.zp-comment {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(var(--accent), 0.14);
}
.zp-comment-avatar img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
}
.zp-comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 12px;
    margin-bottom: 5px;
}
.zp-comment-author { font-size: 13.5px; font-weight: 600; color: var(--text); }
.zp-comment-author a { color: var(--text); }
.zp-comment-time { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.zp-comment-floor { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-left: auto; }
.zp-comment-body { font-size: 14px; line-height: 1.85; color: var(--text-2); word-break: break-word; }
.zp-comment-body img { margin: 8px 0; border-radius: var(--radius-sm); }
.zp-comment-reply {
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(var(--accent), 0.85);
    border: 0;
    background: none;
    padding: 0;
}
.zp-comment-reply:hover { color: rgb(var(--accent)); }
.zp-comment-children { margin-top: 12px; padding-left: 14px; border-left: 2px solid rgba(var(--accent), 0.2); }
.zp-comment-form { padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.zp-comment-form h4 {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 2px;
    color: rgba(var(--accent), 0.9);
    margin-bottom: 14px;
}
.zp-form-row { margin-bottom: 12px; }
.zp-form-row input[type="text"],
.zp-form-row input[type="email"],
.zp-form-row input[type="url"],
.zp-form-row textarea {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    background: rgba(var(--accent), 0.045);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, background 0.3s;
}
.zp-form-row input:focus,
.zp-form-row textarea:focus {
    outline: none;
    border-color: var(--line-strong);
    background: rgba(var(--accent), 0.09);
}
.zp-form-row textarea { min-height: 110px; resize: vertical; }
.zp-form-inline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.zp-form-captcha { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.zp-form-captcha img { height: 40px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.zp-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.zp-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 22px 0;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-3);
    background: var(--panel-2);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.zp-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 18px;
}
.zp-footer a { color: var(--text-3); }
.zp-footer a:hover { color: rgb(var(--accent)); }
.zp-footer p { margin: 0; }
.zp-footer .zp-version { font-family: var(--mono); font-size: 11px; opacity: 0.75; }
.zp-fab-group {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.zp-fab {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(var(--accent));
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(var(--accent), 0.25);
    cursor: pointer;
    transition: all 0.3s;
}
.zp-fab:hover {
    background: rgba(var(--accent), 0.18);
    transform: translateY(-3px);
}
.zp-fab svg { width: 18px; height: 18px; }
.zp-backtop { display: none; }
.zp-backtop.is-show { display: flex; }
.zp-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 62vh;
    text-align: center;
    gap: 6px;
}
.zp-404-code {
    font-family: var(--mono);
    font-size: clamp(64px, 15vw, 120px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 6px;
    color: rgba(var(--accent), 0.22);
    text-shadow: 0 0 40px rgba(var(--accent), 0.35);
}
.zp-404-text { font-size: 15px; color: var(--text-2); margin-bottom: 18px; }
.zp-pw {
    max-width: 420px;
    margin: 8vh auto;
    padding: 30px 30px 26px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
.zp-pw h2 { font-size: 18px; margin-bottom: 8px; }
.zp-pw p { font-size: 13px; color: var(--text-3); margin-bottom: 18px; }
.zp-pw input[type="password"] {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 14px;
    color: var(--text);
    background: rgba(var(--accent), 0.05);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
    letter-spacing: 4px;
}
.zp-pw input[type="password"]:focus { outline: none; border-color: var(--line-strong); }
@media (max-width: 1024px) {
    .zp-row { grid-template-columns: minmax(0, 1fr); }
    .zp-sidebar { margin-top: 22px; position: static; }
    .zp-sidebar::after { display: none; }
}
@media (max-width: 820px) {
    .zp-header-inner { min-height: 56px; gap: 12px; }
    .zp-brand-title { font-size: 18px; letter-spacing: 2px; }
    .zp-menu-toggle { display: inline-flex; }
    .zp-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        background: var(--panel-solid);
        border-bottom: 1px solid var(--line-strong);
        box-shadow: var(--shadow);
        display: none;
        max-height: 70vh;
        overflow-y: auto;
    }
    .zp-nav.is-open { display: flex; }
    .zp-nav a { clip-path: none; border-radius: 2px; }
    .zp-nav .zp-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        border-left: 2px solid rgba(var(--accent), 0.3);
        background: transparent;
        margin: 0 0 4px 10px;
        min-width: 0;
        padding: 0;
    }
    .zp-search--nav { width: 150px; }
    .zp-search--nav:focus-within { width: 186px; }
    .zp-article { padding: 22px 18px 20px; }
    .zp-article-title { font-size: 21px; }
    .zp-neighbor { grid-template-columns: 1fr; }
    .zp-form-inline { grid-template-columns: 1fr; }
    .zp-slides .zp-slide img { height: 190px; }
}
@media (max-width: 600px) {
    body { font-size: 14.5px; }
    .zp-container { padding: 0 14px; }
    .zp-main { padding: 18px 0 34px; }
    .zp-header-tools { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
    .zp-search--nav {
        width: auto;
        flex: 1 1 auto;
        min-width: 96px;
        max-width: 220px;
        height: 32px;
    }
    .zp-search--nav:focus-within { width: auto; }
    .zp-search--nav .zp-search-act { width: 24px; height: 22px; }
    .zp-post-body { padding: 14px 14px 12px; }
    .zp-post-title { font-size: 16px; }
    .zp-post-cover { margin: -14px -14px 12px; }
    .zp-post-cover img { height: 160px; }
    .zp-article-meta { gap: 6px 12px; }
    .zp-comment { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; }
    .zp-comment-avatar img { width: 34px; height: 34px; }
    .zp-footer-inner { flex-direction: column; text-align: center; }
    /* 触摸目标不小于 44px —— 38px 在手机上偏小，容易点不中 */
    .zp-fab-group { right: 12px; bottom: 16px; gap: 8px; }
    .zp-fab { width: 44px; height: 44px; }
    .zp-latest-head { padding: 10px 14px; letter-spacing: 1.5px; }
    .zp-latest-item { grid-template-columns: 7px 40px minmax(0, 1fr); gap: 10px; padding: 10px 14px; }
    .zp-latest-sort { display: none; }
    .zp-latest-link { font-size: 13.5px; }
    .zp-toc { padding: 12px 14px 10px; }
    .zp-toc-count { display: none; }
    .zp-toc-item a { font-size: 13px; padding-left: 26px; }
    .zp-toc-l3 a { padding-left: 40px; font-size: 12.5px; }
    .zp-emoji-panel { grid-template-columns: repeat(8, 30px); }
    .zp-share-btn { padding: 8px 16px; font-size: 11.5px; letter-spacing: 1px; }
    .zp-related-item { grid-template-columns: 7px minmax(0, 1fr); }
    .zp-related-date { display: none; }
    .zp-stats-bar { gap: 8px 18px; padding: 12px 14px; }
    .zp-user { padding: 24px 18px; }
    .zp-user-title { font-size: 21px; }
    .zp-user-head { gap: 14px; }
    .zp-user-avatar { width: 58px; height: 58px; }
}
.zp-hero {
    text-align: center;
    margin-top: auto;
    margin-bottom: 12px;
    animation: zp-hero-in 0.9s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes zp-hero-in {
    0%   { opacity: 0; transform: translateY(-16px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes zp-fadeup {
    0%   { opacity: 0; transform: translateY(-16px); }
    100% { opacity: 1; transform: translateY(0); }
}
.zp-hero-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 6px;
    color: rgba(var(--accent), 0.8);
    margin-bottom: 12px;
}
.zp-hero-kicker::before,
.zp-hero-kicker::after {
    content: '';
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--accent), 0.8));
}
.zp-hero-kicker::after {
    background: linear-gradient(90deg, rgba(var(--accent), 0.8), transparent);
}
.zp-hero-title {
    font-family: var(--display);
    font-size: clamp(34px, 5.2vw, 54px);
    font-weight: 800;
    letter-spacing: 10px;
    line-height: 1.12;
    margin-bottom: 12px;
    text-indent: 10px;
    background: linear-gradient(100deg, #ffffff 0%, #7ef1ff 34%, #4d9fff 62%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: zp-shimmer 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(var(--accent), 0.5));
}
.zp-hero-desc {
    font-size: 12.5px;
    letter-spacing: 3.5px;
    color: rgba(170, 205, 238, 0.62);
}
#zp-bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}
.zp-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 14%,  rgba(255, 72, 92, 0.15),  transparent 40%),
        radial-gradient(circle at 92% 18%, rgba(0, 168, 255, 0.15), transparent 40%),
        radial-gradient(circle at 12% 88%, rgba(255, 214, 10, 0.12), transparent 38%),
        radial-gradient(circle at 88% 84%, rgba(0, 226, 140, 0.14),  transparent 40%),
        radial-gradient(circle at 50% 52%, rgba(255, 148, 37, 0.07),  transparent 54%);
}
.zp-bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}
.zp-bg-overlay.is-active { opacity: 1; }
.zp-bg-top    { background: radial-gradient(ellipse at 30% 40%, rgba(248, 251, 255, 0.26), rgba(180, 200, 220, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(255, 255, 255, 0.16), transparent); }
.zp-bg-bottom { background: radial-gradient(ellipse at 30% 40%, rgba(255, 214, 10, 0.30), rgba(200, 165, 10, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(255, 230, 90, 0.16), transparent); }
.zp-bg-front  { background: radial-gradient(ellipse at 30% 40%, rgba(0, 226, 140, 0.32), rgba(0, 170, 105, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(90, 255, 190, 0.16), transparent); }
.zp-bg-back   { background: radial-gradient(ellipse at 30% 40%, rgba(0, 168, 255, 0.34), rgba(0, 120, 200, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(110, 205, 255, 0.16), transparent); }
.zp-bg-left   { background: radial-gradient(ellipse at 30% 40%, rgba(255, 148, 37, 0.32), rgba(200, 110, 20, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(255, 190, 110, 0.16), transparent); }
.zp-bg-right  { background: radial-gradient(ellipse at 30% 40%, rgba(255, 72, 92, 0.32), rgba(200, 45, 65, 0.07)), radial-gradient(ellipse at 70% 60%, rgba(255, 130, 150, 0.16), transparent); }
.zp-scan-beam {
    position: fixed;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(var(--accent), 0.055) 45%,
        rgba(var(--accent), 0.09) 50%,
        rgba(var(--accent), 0.055) 55%,
        transparent
    );
    pointer-events: none;
    z-index: 2;
    animation: zp-beam-sweep 9s linear infinite;
}
@keyframes zp-beam-sweep {
    0%   { transform: translateY(-200px); }
    100% { transform: translateY(100vh); }
}
.zp-cube-wrapper {
    --cube: 290px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 16px;
}
.zp-cube-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: zp-stage-enter 1s cubic-bezier(0.18, 0.9, 0.28, 1.02) both;
    animation-delay: 0.12s;
}
@keyframes zp-stage-enter {
    0%   { opacity: 0; transform: scale(0.72); filter: blur(14px); }
    100% { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.zp-cube-glow {
    position: absolute;
    inset: -64px;
    border-radius: 50%;
    filter: blur(86px);
    opacity: 0.48;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.zp-cube-glow.zp-glow-top    { background: #f8fbff; }
.zp-cube-glow.zp-glow-bottom { background: #ffd60a; }
.zp-cube-glow.zp-glow-front  { background: #00e28c; }
.zp-cube-glow.zp-glow-back   { background: #00a8ff; }
.zp-cube-glow.zp-glow-left   { background: #ff9425; }
.zp-cube-glow.zp-glow-right  { background: #ff485c; }
.zp-cube-aura {
    position: absolute;
    /* 留白不宜过大：光环是 absolute 定位，超出舞台的部分会撑大 scrollWidth，
       手机上就变成「页面能左右拖」。16px 是实测不溢出的安全值。 */
    inset: -16px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent), 0.22);
    pointer-events: none;
    /* 不能做 rotate 动画：旋转后的对角包围盒会把 scrollWidth 撑大 40%，
       而舞台又不能裁剪（会切掉旋转中的魔方）。改用呼吸，视觉效果接近且不溢出新。
       注意 keyframes 里也不能出现 translate/rotate/scale。 */
    animation: zp-aura-breathe 6s ease-in-out infinite;
}
@keyframes zp-aura-breathe {
    0%, 100% { opacity: 0.55; }
    50%      { opacity: 1; }
}
.zp-cube-aura::before {
    content: '';
    position: absolute;
    inset: 9%;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent), 0.12);
    border-top-color: rgba(var(--accent), 0.55);
    border-right-color: rgba(var(--accent), 0.28);
}
.zp-cube-aura::after {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: #00e5ff;
    box-shadow: 0 0 14px 3px rgba(var(--accent), 0.95);
}
@keyframes zp-aura-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.zp-cube-container {
    perspective: 1400px;
    width: calc(var(--cube) * 1.58);
    height: calc(var(--cube) * 1.58);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    position: relative;
    z-index: 2;
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
}
.zp-cube-container:active { cursor: grabbing; }
.zp-cube-container::after {
    content: '';
    position: absolute;
    bottom: 6%;
    left: 50%;
    width: 72%;
    height: 9%;
    margin-left: -36%;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(var(--accent), 0.34), transparent 70%);
    filter: blur(14px);
    pointer-events: none;
    z-index: 0;
}
.zp-cube {
    position: relative;
    width: var(--cube);
    height: var(--cube);
    transform-style: preserve-3d;
    transform: rotateX(-25deg) rotateY(35deg);
    will-change: transform;
}
.zp-hud-frame {
    position: absolute;
    inset: -20px;
    pointer-events: none;
    z-index: 1;
}
.zp-hud-frame span {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(var(--accent), 0.5);
}
.zp-hud-frame span:nth-child(1) { top: 0;    left: 0;  border-right: 0; border-bottom: 0; }
.zp-hud-frame span:nth-child(2) { top: 0;    right: 0; border-left: 0;  border-bottom: 0; }
.zp-hud-frame span:nth-child(3) { bottom: 0; left: 0;  border-right: 0; border-top: 0; }
.zp-hud-frame span:nth-child(4) { bottom: 0; right: 0; border-left: 0;  border-top: 0; }
.zp-face {
    --fc: 0, 226, 140;
    position: absolute;
    width: var(--cube);
    height: var(--cube);
    border-radius: 10px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #fff;
    background-color: rgba(var(--fc), 0.97);
    background-image:
        linear-gradient(155deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0) 42%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.22) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.48);
    box-shadow:
        inset 0 0 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 38px rgba(var(--fc), 0.70),
        0 0 110px rgba(var(--fc), 0.34);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}
.zp-face::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 42%,
        rgba(255, 255, 255, 0.10) 46%,
        rgba(255, 255, 255, 0.38) 50%,
        rgba(255, 255, 255, 0.10) 54%,
        transparent 58%
    );
    pointer-events: none;
    animation: zp-shine 9s linear infinite;
    z-index: 1;
}
@keyframes zp-shine {
    0%   { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
.zp-face::after {
    content: '';
    position: absolute;
    inset: 7px;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) left top / 16px 2px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) left top / 2px 16px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) right top / 16px 2px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) right top / 2px 16px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) left bottom / 16px 2px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) left bottom / 2px 16px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) right bottom / 16px 2px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) right bottom / 2px 16px no-repeat;
}
.zp-face-top    { transform: rotateX(90deg)  translateZ(calc(var(--cube) / 2)); --fc: 248, 251, 255; }
.zp-face-bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)); --fc: 255, 214, 10;  }
.zp-face-front  { transform: translateZ(calc(var(--cube) / 2));                 --fc: 0, 226, 140;   }
.zp-face-back   { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); --fc: 0, 168, 255;   }
.zp-face-right  { transform: rotateY(90deg)  translateZ(calc(var(--cube) / 2)); --fc: 255, 72, 92;   }
.zp-face-left   { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); --fc: 255, 148, 37;  }
.zp-face-grid {
    position: absolute;
    inset: 11px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 6px;
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.52);
    z-index: 0;
    pointer-events: none;
}
.zp-cell {
    position: relative;
    border-radius: 6px;
    background-color: rgb(var(--fc));
    background-image:
        linear-gradient(155deg, rgba(255, 255, 255, 0.30) 0%, rgba(255, 255, 255, 0) 52%),
        linear-gradient(335deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 58%);
    border: 1px solid rgba(255, 255, 255, 0.36);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        0 0 16px rgba(var(--fc), 0.60);
    transition: all 0.35s;
}
.zp-cell.center {
    background-image:
        linear-gradient(155deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.04) 55%),
        linear-gradient(335deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0) 58%);
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 24px rgba(var(--fc), 0.95),
        0 0 50px rgba(var(--fc), 0.5);
}
.zp-cell.center::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) center / 12px 1px no-repeat,
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) center / 1px 12px no-repeat;
}
.zp-face:hover .zp-cell {
    background-image:
        linear-gradient(155deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.10) 55%),
        linear-gradient(335deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0) 58%);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 0 26px rgba(var(--fc), 1);
}
.zp-face a,
.zp-face > span {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    z-index: 2;
}
.zp-face a::before,
.zp-face > span::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 78%;
    height: 30%;
    background: rgba(3, 7, 15, 0.80);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 3px;
    box-shadow:
        0 0 28px rgba(0, 0, 0, 0.6),
        inset 0 0 24px rgba(var(--fc), 0.38);
    transition: all 0.4s;
}
.zp-face-label {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    color: #fff;
    text-shadow:
        0 0 18px rgba(var(--fc), 1),
        0 2px 8px rgba(0, 0, 0, 0.95);
    font-family: var(--display);
}
.zp-face-sub {
    position: relative;
    z-index: 1;
    font-size: 9.5px;
    letter-spacing: 5px;
    font-weight: 400;
    color: rgba(236, 246, 255, 0.82);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.95);
    font-family: var(--mono);
}
.zp-face:hover {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow:
        inset 0 0 70px rgba(255, 255, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.65),
        0 0 64px rgba(var(--fc), 1),
        0 0 160px rgba(var(--fc), 0.6);
}
.zp-face:hover a::before,
.zp-face:hover > span::before {
    background: rgba(3, 7, 15, 0.68);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 0 32px rgba(0, 0, 0, 0.55),
        inset 0 0 30px rgba(var(--fc), 0.55);
}
.zp-face-top:hover    { transform: rotateX(90deg)  translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face-bottom:hover { transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face-front:hover  { transform: translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face-back:hover   { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face-right:hover  { transform: rotateY(90deg)  translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face-left:hover   { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)) scale(1.04); }
.zp-face.is-empty { opacity: 0.34; filter: saturate(0.22); }
.zp-hud-readout {
    position: absolute;
    left: calc(100% + 22px);
    top: 50%;
    transform: translateY(-50%);
    width: 148px;
    padding: 12px 14px;
    background: var(--panel);
    border: 1px solid rgba(var(--accent), 0.26);
    border-left: 2px solid rgba(var(--accent), 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    pointer-events: none;
    z-index: 3;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.6px;
    opacity: 0;
    animation: zp-fade-in 0.7s ease 0.9s forwards;
}
@keyframes zp-fade-in {
    to { opacity: 1; }
}
.zp-hud-readout::before {
    content: 'SYSTEM';
    display: block;
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(var(--accent), 0.85);
    margin-bottom: 9px;
    padding-bottom: 7px;
    border-bottom: 1px solid rgba(var(--accent), 0.2);
}
.zp-hud-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 2.5px 0;
}
.zp-hud-k { color: rgba(150, 185, 220, 0.6); }
.zp-hud-v {
    color: #8ef4ff;
    text-shadow: 0 0 9px rgba(var(--accent), 0.6);
}
.zp-hud-v.ok {
    color: #5cff9d;
    text-shadow: 0 0 9px rgba(92, 255, 157, 0.6);
}
.zp-control-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 22px;
}
.zp-face-indicator {
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(var(--accent), 0.18);
    background: rgba(var(--accent), 0.05);
}
.zp-face-dot {
    width: 30px;
    height: 5px;
    border-radius: 1px;
    border: 0;
    opacity: 0.32;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%);
}
.zp-face-dot.active {
    opacity: 1;
    transform: scaleY(2);
    box-shadow: 0 0 20px currentColor;
}
.zp-face-dot.zp-dot-top    { background: #f8fbff; color: #f8fbff; }
.zp-face-dot.zp-dot-bottom { background: #ffd60a; color: #ffd60a; }
.zp-face-dot.zp-dot-front  { background: #00e28c; color: #00e28c; }
.zp-face-dot.zp-dot-back   { background: #00a8ff; color: #00a8ff; }
.zp-face-dot.zp-dot-left   { background: #ff9425; color: #ff9425; }
.zp-face-dot.zp-dot-right  { background: #ff485c; color: #ff485c; }
.zp-hint {
    position: relative;
    padding-left: 15px;
    color: rgba(170, 205, 238, 0.64);
    font-size: 11.5px;
    letter-spacing: 4px;
    font-family: var(--mono);
    animation: zp-pulse 3.4s ease-in-out infinite;
}
.zp-hint::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    background: rgba(var(--accent), 0.95);
    box-shadow: 0 0 12px rgba(var(--accent), 0.95);
    animation: zp-blink 1.6s steps(1) infinite;
}
@keyframes zp-pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}
@keyframes zp-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0.15; }
}
@media (max-width: 1080px) {
    .zp-hud-readout {
        position: static;
        transform: none;
        width: auto;
        max-width: 460px;
        margin: 20px auto 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 18px;
        border-left: 1px solid rgba(var(--accent), 0.26);
        border-top: 2px solid rgba(var(--accent), 0.7);
        animation: none;
        opacity: 1;
    }
    .zp-hud-readout::before {
        margin: 0 6px 0 0;
        padding: 0 10px 0 0;
        border-bottom: 0;
        border-right: 1px solid rgba(var(--accent), 0.2);
    }
    .zp-hud-row { padding: 0; }
}
@media (max-width: 820px) {
    .zp-cube-wrapper { --cube: 240px; }
    .zp-hud-frame { inset: -16px; }
    .zp-hud-frame span { width: 22px; height: 22px; }
}
@media (max-width: 600px) {
    .zp-cube-wrapper { --cube: 200px; }
    .zp-cube-glow { inset: -36px; filter: blur(60px); opacity: 0.42; }
    .zp-cube-aura { animation-duration: 46s; }
    .zp-cube-aura::after { width: 4px; height: 4px; margin-left: -2px; }
    .zp-hud-frame { inset: -11px; }
    .zp-hud-frame span { width: 16px; height: 16px; }
    .zp-face { border-radius: 7px; }
    .zp-face::after {
        inset: 5px;
        background-size: 11px 2px, 2px 11px, 11px 2px, 2px 11px, 11px 2px, 2px 11px, 11px 2px, 2px 11px;
    }
    .zp-face-grid { inset: 8px; gap: 4px; border-radius: 5px; }
    .zp-cell { border-radius: 4px; }
    .zp-cell.center::after {
        background:
            linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) center / 8px 1px no-repeat,
            linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.95)) center / 1px 8px no-repeat;
    }
    .zp-face-label { font-size: 13px; letter-spacing: 2px; }
    .zp-face-sub { font-size: 8px; letter-spacing: 3px; }
    .zp-face a::before,
    .zp-face > span::before { width: 82%; height: 32%; }
    .zp-control-bar { gap: 10px 16px; margin-top: 18px; }
    .zp-face-indicator { gap: 5px; padding: 6px 10px; }
    .zp-face-dot { width: 19px; height: 4px; }
    .zp-hint { font-size: 10px; letter-spacing: 2.5px; padding-left: 13px; }
    .zp-hint::before { width: 5px; height: 5px; margin-top: -2.5px; }
    .zp-hud-readout { font-size: 10px; padding: 10px 12px; max-width: 100%; }
}
@media (max-width: 380px) {
    .zp-cube-wrapper { --cube: 168px; }
    .zp-face-label { font-size: 11px; letter-spacing: 1.5px; }
    .zp-face-sub { font-size: 7px; letter-spacing: 2px; }
    .zp-face-grid { inset: 6px; gap: 3px; }
    .zp-cell { border-radius: 3px; }
    .zp-cube-aura::before { inset: 7%; }
}
[data-theme="light"] #zp-bg-canvas,
[data-theme="light"] .zp-ambient,
[data-theme="light"] .zp-scan-beam,
[data-theme="light"] .zp-cube-container::after {
    display: none;
}
[data-theme="light"] .zp-bg-overlay,
[data-theme="light"] .zp-cube-glow {
    display: none;
}
[data-theme="light"] .zp-hud-readout {
    background: rgba(255, 255, 255, 0.92);
}
[data-theme="light"] .zp-face {
    border-color: rgba(255, 255, 255, 0.7);
}
.zp-latest {
    margin-top: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: zp-fadeup 1s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.zp-latest-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
}
.zp-latest-title { color: rgba(var(--accent), 0.85); }
.zp-latest-more {
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.25s ease;
}
.zp-latest-more:hover { color: rgb(var(--accent)); }
.zp-latest-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.zp-latest-item {
    display: grid;
    grid-template-columns: 7px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    border-bottom: 1px solid rgba(var(--accent), 0.09);
    transition: background 0.25s ease;
}
.zp-latest-item:last-child { border-bottom: 0; }
.zp-latest-item:hover { background: rgba(var(--accent), 0.05); }
.zp-latest-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--fc));
    box-shadow: 0 0 10px rgba(var(--fc), 0.85);
}
.zp-latest-date {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}
.zp-latest-link {
    font-size: 14.5px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.25s ease;
}
.zp-latest-item:hover .zp-latest-link { color: rgb(var(--fc)); }
.zp-latest-sort {
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--text-3);
    white-space: nowrap;
}
.zp-latest-sort a {
    color: inherit;
    text-decoration: none;
}
.zp-latest-sort a:hover { color: rgb(var(--accent)); }
[data-theme="dark"] .zp-icon-moon { display: none; }
[data-theme="light"] .zp-icon-sun { display: none; }
.zp-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-family: var(--mono);
    font-size: 11.5px;
    letter-spacing: 0.6px;
    color: var(--text-3);
}
.zp-crumb-item {
    color: var(--text-3);
    text-decoration: none;
    max-width: 22em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.25s;
}
a.zp-crumb-item:hover { color: rgb(var(--accent)); }
.zp-crumb-item.is-current {
    color: var(--text-2);
    cursor: default;
}
.zp-crumb-sep { color: rgba(var(--accent), 0.5); }

/* ============================================================
   分类封面（分类归档页顶部）
   图片来自 emlog 后台「分类管理」的分类图片（sortimg），
   没设图时不输出这个区块，页面保持原样。
   ============================================================ */
.zp-sort-banner {
    position: relative;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel-solid);
    isolation: isolate;
    animation: zp-fadeup 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

/* 图片铺满整块，作为底图 */
.zp-sort-banner-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.zp-sort-banner-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 遮罩：左侧压暗保证文字可读，底部透出该分类的主题色。
   background-color 是兜底——万一主题色变量缺失导致渐变失效，
   单靠这一层也能保证文字读得清。 */
.zp-sort-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-color: rgba(6, 11, 20, 0.72);
    background-image:
        linear-gradient(100deg,
            rgba(6, 11, 20, 0.94) 0%,
            rgba(6, 11, 20, 0.76) 40%,
            rgba(6, 11, 20, 0.30) 72%,
            rgba(6, 11, 20, 0.12) 100%),
        linear-gradient(0deg, rgba(var(--fc), 0.24), transparent 62%);
}

/* 顶部扫过的高光。用 background-position 动画，不产生横向溢出 */
.zp-sort-banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    z-index: 3;
    pointer-events: none;
    background-image: linear-gradient(90deg,
        transparent,
        rgba(var(--fc), 0.9) 35%,
        rgba(var(--fc), 0.9) 65%,
        transparent);
    background-size: 45% 100%;
    background-repeat: no-repeat;
    animation: zp-banner-scan 5.5s linear infinite;
}

@keyframes zp-banner-scan {
    0%   { background-position: -45% 0; opacity: 0; }
    18%  { opacity: 1; }
    82%  { opacity: 1; }
    100% { background-position: 145% 0; opacity: 0; }
}

.zp-sort-banner-body {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 190px;
    max-width: 66%;
    padding: 28px 26px 24px;
}

.zp-sort-banner-kicker {
    margin-bottom: 9px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 3px;
    color: rgba(var(--fc), 0.85);
}

.zp-sort-banner-title {
    font-family: var(--display);
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 0 28px rgba(var(--fc), 0.4);
}

.zp-sort-banner-desc {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(233, 239, 247, 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.zp-sort-banner-meta {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 2px;
    color: rgba(var(--fc), 0.72);
}

/* 浅色主题：白色遮罩会把照片整片压没，封面就失去意义了。
   改成「图片收到右侧、文字落在干净面板上」的版式——图看得清，字也看得清。 */
[data-theme="light"] .zp-sort-banner-media {
    left: auto;
    right: 0;
    width: 46%;
}

[data-theme="light"] .zp-sort-banner::before {
    background-color: transparent;
    background-image: linear-gradient(90deg,
        var(--panel-solid) 0%,
        var(--panel-solid) 36%,
        rgba(255, 255, 255, 0.62) 52%,
        rgba(255, 255, 255, 0) 74%);
}

[data-theme="light"] .zp-sort-banner-body { max-width: 56%; }

[data-theme="light"] .zp-sort-banner-title {
    color: #0b1a26;
    text-shadow: none;
}

[data-theme="light"] .zp-sort-banner-desc { color: rgba(18, 44, 66, 0.8); }

@media (max-width: 600px) {
    .zp-sort-banner { margin-bottom: 14px; }

    .zp-sort-banner-body {
        min-height: 146px;
        max-width: 100%;
        padding: 20px 16px 18px;
    }

    .zp-sort-banner-kicker { margin-bottom: 7px; }
    .zp-sort-banner-title { font-size: 21px; letter-spacing: 1px; }
    .zp-sort-banner-desc { margin-top: 8px; font-size: 12.5px; }
    .zp-sort-banner-meta { margin-top: 9px; }

    /* 窄屏文字占满宽度，横向渐变不够用，改成自上而下的压暗 */
    .zp-sort-banner::before {
        background-image:
            linear-gradient(180deg, rgba(6, 11, 20, 0.42), rgba(6, 11, 20, 0.92) 78%),
            linear-gradient(0deg, rgba(var(--fc), 0.24), transparent 62%);
    }

    /* 浅色窄屏：图片单独占顶部一条，文字落在下面的白色面板上 */
    [data-theme="light"] .zp-sort-banner-media {
        position: relative;
        left: auto;
        right: auto;
        width: 100%;
        height: 118px;
    }

    [data-theme="light"] .zp-sort-banner-body {
        max-width: 100%;
        min-height: auto;
    }

    [data-theme="light"] .zp-sort-banner::before { display: none; }
}
.zp-toc {
    position: relative;
    margin: 6px 0 24px;
    padding: 14px 18px 12px;
    border: 1px solid var(--line);
    border-left: 2px solid rgba(var(--accent), 0.6);
    border-radius: var(--radius-sm);
    background: var(--panel-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.zp-toc-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 2px;
}
.zp-toc-title { color: rgba(var(--accent), 0.85); }
.zp-toc-count {
    color: var(--text-3);
    letter-spacing: 1px;
}
.zp-toc-toggle {
    margin-left: auto;
    padding: 2px 9px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--text-3);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s;
}
.zp-toc-toggle:hover {
    color: rgb(var(--accent));
    border-color: var(--line-strong);
}
.zp-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: zp-toc;
}
.zp-toc-item {
    counter-increment: zp-toc;
    line-height: 1.95;
}
.zp-toc-item a {
    display: block;
    position: relative;
    padding-left: 30px;
    font-size: 13.5px;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.25s, padding-left 0.25s;
}
.zp-toc-item a::before {
    content: counter(zp-toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-3);
}
.zp-toc-item a:hover {
    color: rgb(var(--accent));
    padding-left: 34px;
}
.zp-toc-item a.is-active { color: rgb(var(--accent)); }
.zp-toc-item a.is-active::before { color: rgb(var(--accent)); }
.zp-toc-l3 a { padding-left: 46px; font-size: 13px; }
.zp-toc-l3 a::before { left: 16px; }
.zp-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 200;
    pointer-events: none;
    background: rgba(var(--accent), 0.08);
}
.zp-progress-fill {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(var(--accent), 0.5), rgb(var(--accent)));
    box-shadow: 0 0 10px rgba(var(--accent), 0.8);
    transition: width 0.1s linear;
}
.zp-article-content pre { position: relative; }
.zp-code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 1px;
    color: var(--text-3);
    background: rgba(4, 10, 18, 0.72);
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.25s;
}
.zp-article-content pre:hover .zp-code-copy,
.zp-code-copy:focus { opacity: 1; }
.zp-code-copy:hover {
    color: rgb(var(--accent));
    border-color: var(--line-strong);
}
.zp-code-copy.is-done {
    color: #5cff9d;
    border-color: rgba(92, 255, 157, 0.5);
    opacity: 1;
}
@media (hover: none) {
    .zp-code-copy { opacity: 0.75; }
}
.zp-share {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 26px;
}
.zp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-2);
    background: rgba(var(--accent), 0.06);
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    transition: all 0.25s;
}
.zp-share-btn:hover {
    color: rgb(var(--accent));
    background: rgba(var(--accent), 0.14);
    border-color: var(--line-strong);
}
.zp-share-btn svg { width: 15px; height: 15px; }
.zp-related {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.zp-related-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(var(--accent), 0.85);
}
.zp-related-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(var(--accent), 0.4), transparent);
}
.zp-related-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.zp-related-item {
    display: grid;
    grid-template-columns: 7px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(var(--accent), 0.07);
}
.zp-related-item:last-child { border-bottom: 0; }
.zp-related-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgb(var(--fc));
    box-shadow: 0 0 9px rgba(var(--fc), 0.8);
}
.zp-related-item a {
    font-size: 14px;
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: color 0.25s;
}
.zp-related-item:hover a { color: rgb(var(--fc)); }
.zp-related-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
}
.zp-emoji {
    position: relative;
    margin-top: 8px;
}
.zp-emoji-btn {
    padding: 4px 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-3);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.25s;
}
.zp-emoji-btn:hover {
    color: rgb(var(--accent));
    border-color: var(--line-strong);
}
.zp-emoji-panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    z-index: 30;
    display: none;
    grid-template-columns: repeat(10, 30px);
    gap: 2px;
    padding: 8px;
    background: var(--panel-solid);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}
.zp-emoji-panel.is-open { display: grid; }
.zp-emoji-item {
    width: 30px;
    height: 30px;
    font-size: 17px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}
.zp-emoji-item:hover { background: rgba(var(--accent), 0.16); }
.zp-mark {
    padding: 0 2px;
    color: #04141c;
    background: rgba(var(--accent), 0.85);
    border-radius: 2px;
}
.zp-stats-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 26px;
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 1px;
    color: var(--text-3);
}
.zp-stats-bar b {
    margin-right: 6px;
    font-size: 14px;
    font-weight: 700;
    color: rgb(var(--accent));
}
.zp-stats-bar span { white-space: nowrap; }
.zp-user {
    position: relative;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.zp-user-guest { text-align: center; }
.zp-user-title {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text);
    margin-bottom: 10px;
}
.zp-user-tip {
    font-size: 14px;
    color: var(--text-3);
    margin-bottom: 20px;
}
.zp-user-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.zp-user-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    box-shadow: 0 0 24px rgba(var(--accent), 0.25);
}
.zp-user-info { min-width: 0; }
.zp-user-desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-2);
}
.zp-user-mail {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}
.zp-user-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.zp-no-comment {
    padding: 26px 0;
    text-align: center;
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 1px;
    color: var(--text-3);
}
.zp-article-meta .zp-meta-edit { margin-left: auto; }
.zp-form-tip {
    font-size: 12px;
    color: var(--text-3);
}
.zp-widget-custom {
    font-size: 13.5px;
    line-height: 1.85;
    color: var(--text-2);
}
.zp-widget-custom img { max-width: 100%; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
    .zp-header::after,
    .zp-article::before,
    .zp-sort-banner::after,
    .zp-brand-title {
        animation: none;
    }
    body::after { display: none; }
    .zp-post:hover { transform: none; }
    .zp-cube-stage,
    .zp-cube-aura,
    .zp-cube-aura::after,
    .zp-face::before,
    .zp-scan-beam,
    .zp-hint,
    .zp-hint::before {
        animation: none;
    }
    .zp-cube { will-change: auto; }
    .zp-sidebar,
    .zp-sidebar::after { transition: none; }
    .zp-sidebar .zp-widget.is-in { animation: none; }
    .zp-sidebar.is-stuck::after { animation: none; }
}