/* ==========================================================================
   BlogThemeZephyr — 主样式
   浅色留白 + 单一蓝色品牌色相，卡片式文章流与完整侧栏小工具。
   ========================================================================== */

:root {
    --zy-primary: #0068f5;
    --zy-primary-dark: #0057cd;
    --zy-link: #0068f5;
    --zy-link-soft: #0057cd;
    --zy-primary-soft: #eef5ff;
    --zy-primary-tint: #d6e7ff;

    --zy-text: #2b303b;
    --zy-text-strong: #171c26;
    --zy-text-body: #444c5a;
    --zy-muted: #636c79;

    --zy-line: #eaeef5;
    --zy-line-strong: #dfe5ef;

    --zy-bg: #ffffff;
    --zy-surface: #ffffff;
    --zy-surface-alt: #f6f8fb;

    --zy-radius: 10px;
    --zy-radius-sm: 6px;
    --zy-shadow: 0 1px 2px rgba(23, 41, 77, .04), 0 10px 26px -20px rgba(23, 41, 77, .32);
    --zy-shadow-hover: 0 2px 6px rgba(23, 41, 77, .06), 0 16px 32px -22px rgba(23, 41, 77, .45);
    --zy-ease: cubic-bezier(.22, .61, .36, 1);

    --zy-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html.zy-night {
    --zy-text: #dfe4ee;
    --zy-text-strong: #f3f6fb;
    --zy-text-body: #c4ccd9;
    --zy-muted: #9aa4b4;

    --zy-line: #262c39;
    --zy-line-strong: #313949;

    --zy-bg: #12151c;
    --zy-surface: #171b24;
    --zy-surface-alt: #1e2430;

    --zy-primary-soft: #16263d;
    --zy-primary-tint: #1d3355;
    --zy-link: #7db8ff;
    --zy-link-soft: #a8d0ff;

    --zy-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -22px rgba(0, 0, 0, .85);
    --zy-shadow-hover: 0 2px 6px rgba(0, 0, 0, .45), 0 18px 34px -22px rgba(0, 0, 0, .9);
}

/* --------------------------------------------------------------- 基础 ---- */

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

.zy-page {
    min-height: 100vh;
    font-family: var(--zy-font);
    font-size: 15px;
    line-height: 1.75;
    color: var(--zy-text-body);
    background-color: var(--zy-bg);
    background-image: radial-gradient(rgba(0, 32, 80, .05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

html.zy-night .zy-page {
    background-image: radial-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px);
}

.zy-page :where(h1, h2, h3, h4, h5, h6) {
    margin: 0;
    font-weight: 600;
    color: var(--zy-text-strong);
    line-height: 1.45;
}

.zy-page :where(p) {
    margin: 0;
}

.zy-page :where(ul, ol) {
    margin: 0;
    padding: 0;
    list-style: none;
}

.zy-page :where(img) {
    max-width: 100%;
    height: auto;
}

.zy-page :where(a) {
    text-decoration: none;
    transition: color .2s var(--zy-ease);
}

.zy-page :where(button) {
    font-family: inherit;
}

.zy-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.zy-main {
    position: relative;
    padding: 22px 0 48px;
}

.zy-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.zy-content {
    min-width: 0;
}

.zy-side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.zy-card {
    background: var(--zy-surface);
    border: 1px solid var(--zy-line);
    border-radius: var(--zy-radius);
    box-shadow: var(--zy-shadow);
}

.zy-clamp-1,
.zy-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.zy-clamp-1 {
    -webkit-line-clamp: 1;
}

.zy-clamp-2 {
    -webkit-line-clamp: 2;
}

/* 结构类：仅作为布局钩子，避免子项在 flex / grid 中被压缩 */

.zy-posts {
    display: flex;
    flex-direction: column;
}

.zy-hot__list,
.zy-latestcomments__list,
.zy-latestposts__list,
.zy-archive__list {
    display: block;
}

.zy-countdown,
.zy-hot,
.zy-latestcomments,
.zy-latestposts,
.zy-note,
.zy-partners,
.zy-tagwidget {
    display: block;
}

.zy-footer__brand {
    min-width: 0;
}

.zy-adjacent__item--back {
    min-width: 0;
}

.zy-hero__arrow--back,
.zy-hero__arrow--forward {
    min-width: 30px;
}

/* --------------------------------------------------------------- 按钮 ---- */

.zy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--zy-line-strong);
    border-radius: 8px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s var(--zy-ease);
}

.zy-btn:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-btn--primary {
    border-color: var(--zy-link);
    background: var(--zy-primary);
    color: #ffffff;
}

.zy-btn--primary:hover {
    background: var(--zy-primary-dark);
    border-color: var(--zy-link-soft);
    color: #ffffff;
}

.zy-btn--ghost {
    background: transparent;
    color: var(--zy-text-body);
}

.zy-btn--block {
    width: 100%;
    display: flex;
}

.zy-chip {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--zy-primary-soft);
    color: var(--zy-link-soft);
    font-size: 12.5px;
    transition: all .2s var(--zy-ease);
}

.zy-chip:hover {
    background: var(--zy-primary);
    color: #ffffff;
}

.zy-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--zy-surface-alt);
    border: 1px solid var(--zy-line-strong);
    color: var(--zy-muted);
    font-size: 11.5px;
    line-height: 1;
}

.zy-badge--primary {
    background: var(--zy-primary);
    border-color: var(--zy-link);
    color: #ffffff;
}

.zy-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 46px 20px;
    color: var(--zy-muted);
    text-align: center;
}

.zy-empty .iconfont {
    font-size: 30px;
    color: var(--zy-line-strong);
}

.zy-empty p {
    font-size: 14px;
    margin: 0;
}

/* --------------------------------------------------------------- 头部 ---- */

.zy-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--zy-surface);
}

.zy-header__bar {
    border-bottom: 1px solid var(--zy-line);
}

.zy-header__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 66px;
}

.zy-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 42%;
    min-width: 0;
    white-space: nowrap;
}

.zy-brand__logo {
    display: block;
    max-height: 38px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

html.zy-night .zy-brand__logo {
    padding: 3px 8px;
    border-radius: 8px;
    background: #ffffff;
}

.zy-brand__fallback {
    font-size: 20px;
    font-weight: 700;
    color: var(--zy-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
}

.zy-nav {
    display: flex;
    align-items: center;
    min-width: 0;
    margin-left: 18px;
}

.zy-nav__link {
    position: relative;
    display: block;
    padding: 0 15px;
    line-height: 66px;
    font-size: 15px;
    color: var(--zy-text-body);
}

.zy-nav__link:hover,
.zy-nav__link.is-active {
    color: var(--zy-link);
}

.zy-nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--zy-primary);
}

.zy-search {
    display: flex;
    align-items: center;
    height: 40px;
    margin-left: auto;
    padding-left: 14px;
    border: 1px solid var(--zy-line);
    border-radius: 999px;
    background: var(--zy-surface-alt);
    transition: border-color .2s var(--zy-ease);
}

.zy-search:focus-within {
    border-color: var(--zy-link);
}

.zy-search__icon {
    font-size: 15px;
    color: var(--zy-muted);
}

.zy-search__input {
    width: 188px;
    height: 38px;
    padding: 0 10px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--zy-text-body);
}

.zy-search__input::placeholder {
    color: var(--zy-muted);
}

.zy-search__btn {
    height: 32px;
    margin-right: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: var(--zy-primary);
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s var(--zy-ease);
}

.zy-search__btn:hover {
    background: var(--zy-primary-dark);
}

.zy-search-toggle,
.zy-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--zy-line);
    border-radius: 8px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    cursor: pointer;
}

.zy-menu-btn {
    flex-direction: column;
    gap: 4px;
    margin-right: 4px;
    border-color: transparent;
    background: transparent;
}

.zy-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--zy-text-body);
}

.zy-header__sub {
    border-bottom: 1px solid var(--zy-line);
    background: var(--zy-surface-alt);
}

.zy-header__sub-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 46px;
}

.zy-header__slogan {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: var(--zy-muted);
}

.zy-header__slogan .iconfont {
    color: var(--zy-link);
}

.zy-header__slogan span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zy-header__user {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.zy-header__user-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--zy-text-body);
}

.zy-header__user-link:hover {
    color: var(--zy-link);
}

.zy-header__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: var(--zy-primary-soft);
    color: var(--zy-link);
    font-size: 13px;
}

.zy-header__avatar--guest {
    border: 1px solid var(--zy-line-strong);
    background: var(--zy-surface);
}

/* --------------------------------------------------------------- 轮播 ---- */

.zy-hero {
    position: relative;
    margin-bottom: 18px;
    overflow: hidden;
    background: var(--zy-surface);
    border: 1px solid var(--zy-line);
    border-radius: var(--zy-radius);
    box-shadow: var(--zy-shadow);
}

.zy-hero__viewport {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.zy-hero__track {
    position: absolute;
    inset: 0;
}

.zy-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s var(--zy-ease), visibility .6s var(--zy-ease);
}

.zy-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.zy-hero__link {
    position: relative;
    display: block;
    height: 100%;
}

.zy-hero__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--zy-surface-alt);
}

.zy-hero__caption {
    display: block;
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    max-width: 84%;
    padding: 7px 18px;
    border-radius: 999px;
    background: rgba(10, 14, 20, .66);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    backdrop-filter: blur(4px);
}


.zy-hero__control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-top: 1px solid var(--zy-line);
}

.zy-hero__dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.zy-hero__dot {
    position: relative;
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--zy-line-strong);
    cursor: pointer;
    transition: all .25s var(--zy-ease);
}

/* 视觉 8px，点击热区 30px */
.zy-hero__dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
}

.zy-hero__dot.is-active {
    width: 20px;
    border-radius: 999px;
    background: var(--zy-primary);
}

.zy-hero__arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zy-hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--zy-line);
    border-radius: 50%;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    cursor: pointer;
    transition: all .2s var(--zy-ease);
}

.zy-hero__arrow:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-hero__counter {
    min-width: 36px;
    text-align: center;
    font-size: 12px;
    color: var(--zy-muted);
}

/* ----------------------------------------------------------- 文章列表 ---- */

.zy-feed {
    padding: 4px 22px 20px;
}

.zy-feed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0 14px;
    border-bottom: 1px solid var(--zy-line);
}

.zy-feed__title {
    position: relative;
    padding-left: 12px;
    font-size: 16px;
    font-weight: 600;
}

.zy-feed__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--zy-primary);
}

.zy-feed__more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--zy-muted);
}

.zy-feed__more:hover {
    color: var(--zy-link);
}

.zy-post {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    border-bottom: 1px dashed var(--zy-line);
    transition: background .25s var(--zy-ease);
}

.zy-post:last-of-type {
    border-bottom: 0;
}

.zy-post__media {
    position: relative;
    display: block;
    height: 132px;
    margin: 18px 0 12px;
    overflow: hidden;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
}

.zy-post__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--zy-ease);
}

.zy-post:hover .zy-post__img {
    transform: scale(1.05);
}

.zy-post__top {
    display: block;
    position: absolute;
    left: 8px;
    top: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--zy-primary);
    color: #ffffff;
    font-size: 11px;
    line-height: 1.6;
}

.zy-post__body {
    min-width: 0;
    padding: 18px 0 10px 20px;
}

.zy-post__title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--zy-text-strong);
}

.zy-post__title a {
    color: inherit;
}

.zy-post__title a:hover {
    color: var(--zy-link);
}

.zy-post__summary {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.8;
    color: var(--zy-muted);
}

.zy-post__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-post__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.zy-post__meta-unit {
    font-style: normal;
    margin-left: 2px;
}

.zy-post__meta-item .iconfont {
    font-size: 12px;
}

.zy-post__meta-grow {
    flex: 1;
}

.zy-post__cat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--zy-primary-soft);
    color: var(--zy-link-soft);
    font-size: 12px;
}

.zy-post__cat:hover {
    background: var(--zy-primary);
    color: #ffffff;
}

/* ------------------------------------------------------------- 分页 ---- */

.zy-pager {
    padding: 18px 0 4px;
}

.zy-pager .pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.zy-pager .pages a,
.zy-pager .pages span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--zy-line);
    border-radius: 8px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    font-size: 13.5px;
}

.zy-pager .pages a:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-pager .pages .current {
    border-color: var(--zy-link);
    background: var(--zy-primary);
    color: #ffffff;
}

.zy-pager .pages .more {
    border-color: transparent;
    background: transparent;
    color: var(--zy-muted);
}

/* --------------------------------------------------------- 页面标题块 ---- */

.zy-pagehead {
    padding: 18px 22px;
    margin-bottom: 18px;
}

.zy-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-crumb--page {
    margin-bottom: 14px;
}

.zy-crumb a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--zy-muted);
}

.zy-crumb a:hover {
    color: var(--zy-link);
}

.zy-crumb__sep {
    color: var(--zy-muted);
}

.zy-pagehead__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.zy-pagehead__title {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 21px;
    font-weight: 600;
    color: var(--zy-text-strong);
    overflow-wrap: anywhere;
}

.zy-pagehead__title .iconfont {
    color: var(--zy-link);
    font-size: 18px;
}

.zy-pagehead__count {
    flex: 0 0 auto;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-subcats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 14px 20px;
    margin-bottom: 18px;
}

.zy-subcats__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 14px;
    border: 1px solid var(--zy-line);
    border-radius: 999px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    font-size: 13px;
}

.zy-subcats__item:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-subcats__item em {
    font-style: normal;
    color: var(--zy-muted);
    font-size: 12px;
}

/* --------------------------------------------------------------- 侧栏 ---- */

.zy-widget {
    overflow: hidden;
}

.zy-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--zy-line);
}

.zy-widget__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--zy-text-strong);
}

.zy-widget__title .iconfont {
    font-size: 15px;
    color: var(--zy-muted);
}

.zy-widget__more,
.zy-widget__toggle {
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--zy-muted);
    font-size: 12px;
    cursor: pointer;
}

.zy-widget__more:hover,
.zy-widget__toggle:hover {
    color: var(--zy-link);
}

.zy-widget__toggle {
    width: 30px;
    height: 30px;
    margin: -6px -6px -6px 0;
    line-height: 1;
    font-size: 15px;
}

.zy-widget__body {
    padding: 16px 18px;
}

.zy-widget.is-collapsed .zy-widget__body {
    display: none;
}

.zy-widget.is-collapsed .zy-widget__toggle {
    transform: rotate(90deg);
}

/* 作者卡 */

.zy-author {
    overflow: hidden;
}

.zy-author__cover {
    height: 96px;
    overflow: hidden;
    background: var(--zy-primary-soft);
}

.zy-author__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--zy-ease);
}

.zy-author:hover .zy-author__cover img {
    transform: scale(1.04);
}

.zy-author__body {
    padding: 0 18px 18px;
    text-align: center;
}

.zy-author__avatar-link {
    display: inline-block;
    margin-top: -38px;
}

.zy-author__avatar {
    display: block;
    width: 76px;
    height: 76px;
    border: 3px solid var(--zy-surface);
    border-radius: 50%;
    object-fit: cover;
    background: var(--zy-primary-soft);
}

.zy-author__name {
    display: block;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--zy-link);
}

.zy-author__slogan {
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--zy-muted);
}

.zy-author__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--zy-line);
}

.zy-author__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--zy-muted);
    font-size: 12px;
}

.zy-author__stat b {
    font-size: 17px;
    font-weight: 600;
    color: var(--zy-text-strong);
}

.zy-author__stat:hover b,
.zy-author__stat:hover {
    color: var(--zy-link);
}

.zy-author__divider {
    width: 1px;
    height: 26px;
    background: var(--zy-line);
}

/* 倒计时 */

.zy-countdown__row+.zy-countdown__row {
    margin-top: 13px;
}

.zy-countdown__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-countdown__label b {
    font-weight: 600;
    color: var(--zy-text-body);
}

.zy-countdown__bar {
    position: relative;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--zy-surface-alt);
}

.zy-countdown__fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: var(--zy-primary);
    transition: width .8s var(--zy-ease);
}

.zy-countdown__fill--1,
.zy-countdown__fill--2,
.zy-countdown__fill--3,
.zy-countdown__fill--4 {
    background: var(--zy-primary);
}

/* 标签 */

.zy-tagwidget__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zy-tagwidget__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: var(--zy-radius-sm);
    color: var(--zy-link);
    font-size: 13px;
    transition: all .2s var(--zy-ease);
}

.zy-tagwidget__item:hover {
    background: var(--zy-primary-soft);
}

.zy-tagwidget__item em {
    font-style: normal;
    font-size: 11px;
    color: var(--zy-muted);
}

/* 碎碎念 */

.zy-note__bubble {
    position: relative;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--zy-primary-soft);
}

.zy-note__bubble::after {
    content: '';
    position: absolute;
    left: 24px;
    bottom: -5px;
    width: 10px;
    height: 10px;
    background: var(--zy-primary-soft);
    transform: rotate(45deg);
}

.zy-note__text {
    font-size: 13px;
    line-height: 1.85;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-note__sign {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--zy-muted);
    text-align: right;
}

/* 热门 */

.zy-hot__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.zy-hot__item+.zy-hot__item {
    margin-top: 12px;
}

.zy-hot__index {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border-radius: 5px;
    background: var(--zy-surface-alt);
    color: var(--zy-muted);
    font-size: 11.5px;
    font-weight: 600;
}

.zy-hot__index.is-top {
    background: var(--zy-primary);
    color: #ffffff;
}

.zy-hot__title {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-hot__title:hover {
    color: var(--zy-link);
}

/* 最新评论 */

.zy-latestcomments__item {
    display: flex;
    gap: 10px;
}

.zy-latestcomments__item+.zy-latestcomments__item {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--zy-line);
}

.zy-latestcomments__avatar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--zy-primary-soft);
    color: var(--zy-link);
    font-size: 13px;
}

.zy-latestcomments__main {
    min-width: 0;
}

.zy-latestcomments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zy-latestcomments__name {
    font-size: 13px;
    color: var(--zy-text-strong);
}

.zy-latestcomments__date {
    font-size: 11.5px;
    color: var(--zy-muted);
}

.zy-latestcomments__text {
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--zy-muted);
    overflow-wrap: anywhere;
}

.zy-latestcomments__post {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--zy-muted);
    overflow-wrap: anywhere;
}

.zy-latestcomments__post:hover {
    color: var(--zy-link);
}

/* 最新文章 */

.zy-latestposts__item+.zy-latestposts__item {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--zy-line);
}

.zy-latestposts__title {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-latestposts__title:hover {
    color: var(--zy-link);
}

.zy-latestposts__date {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--zy-muted);
}

/* 友链 */

.zy-partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zy-partners__item {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--zy-line);
    border-radius: 999px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    font-size: 12.5px;
}

.zy-partners__item:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

/* ------------------------------------------------------------- 详情页 ---- */

.zy-progress {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 60;
    height: 3px;
    pointer-events: none;
}

.zy-progress__bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--zy-primary);
    transition: width .12s linear;
}

.zy-article {
    padding: 26px 52px 30px;
}

.zy-article__cat {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--zy-primary);
    color: #ffffff;
    font-size: 12px;
}

.zy-article__title {
    margin: 14px 0 18px;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--zy-text-strong);
    overflow-wrap: anywhere;
}

.zy-article__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--zy-line);
}

.zy-article__author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.zy-article__avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--zy-primary-soft);
}

.zy-article__author-main {
    min-width: 0;
}

.zy-article__author-name {
    display: block;
    font-size: 14px;
    color: var(--zy-text-strong);
}

.zy-article__author-sub {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-article__author-sub span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.zy-article__date {
    flex: 0 0 auto;
    text-align: right;
    color: var(--zy-muted);
}

.zy-article__date b {
    display: block;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--zy-text);
}

.zy-article__date span {
    font-size: 12px;
}

.zy-article__like {
    display: flex;
    justify-content: center;
    padding: 22px 0 4px;
}

.zy-article__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 1px solid var(--zy-line);
}

.zy-article__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zy-article__share {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--zy-line);
    border-radius: 50%;
    background: var(--zy-surface);
    color: var(--zy-muted);
    cursor: pointer;
    transition: all .2s var(--zy-ease);
}

.zy-article__share:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-article__locked {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
    color: var(--zy-muted);
    font-size: 13.5px;
}

/* 正文排版 */

.zy-prose {
    font-size: 15px;
    line-height: 1.95;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-prose>*:first-child {
    margin-top: 0;
}

.zy-prose>*:last-child {
    margin-bottom: 0;
}

.zy-prose p {
    margin: 0 0 1.15em;
}

.zy-prose h2 {
    position: relative;
    margin: 1.9em 0 .85em;
    padding-left: 12px;
    font-size: 21px;
    line-height: 1.5;
    border-left: 4px solid var(--zy-primary);
}

.zy-prose h3 {
    margin: 1.6em 0 .7em;
    font-size: 17.5px;
}

.zy-prose h4 {
    margin: 1.4em 0 .6em;
    font-size: 16px;
}

.zy-prose a {
    color: var(--zy-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.zy-prose ul,
.zy-prose ol {
    margin: 0 0 1.15em;
    padding-left: 1.5em;
    list-style: disc;
}

.zy-prose ol {
    list-style: decimal;
}

.zy-prose li {
    margin: .35em 0;
}

.zy-prose ul > li {
    list-style-type: disc;
}

.zy-prose ol > li {
    list-style-type: decimal;
}

.zy-prose li>ul,
.zy-prose li>ol {
    margin: .3em 0 .3em;
}

.zy-prose blockquote {
    margin: 1.2em 0;
    padding: 14px 18px;
    border-left: 3px solid var(--zy-primary);
    border-radius: 0 6px 6px 0;
    background: var(--zy-primary-soft);
    color: var(--zy-text-body);
}

.zy-prose blockquote p:last-child {
    margin-bottom: 0;
}

.zy-prose table {
    width: 100%;
    margin: 1.3em 0;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.7;
}

.zy-prose th,
.zy-prose td {
    padding: 9px 12px;
    border: 1px solid var(--zy-line-strong);
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.zy-prose thead th {
    background: var(--zy-surface-alt);
    font-weight: 600;
    color: var(--zy-text-strong);
}

.zy-prose tbody tr:nth-child(even) td {
    background: var(--zy-surface-alt);
}

.zy-prose img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 440px;
    margin: 1.3em auto;
    border-radius: 8px;
    object-fit: cover;
}

.zy-prose pre {
    margin: 1.3em 0;
    padding: 16px 18px;
    overflow: auto;
    border-radius: 8px;
    background: #1b2130;
    color: #e6ebf5;
    font-size: 13px;
    line-height: 1.75;
}

.zy-prose code {
    padding: .15em .4em;
    border-radius: 4px;
    background: var(--zy-surface-alt);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .92em;
}

.zy-prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.zy-prose hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--zy-line);
}

.zy-prose iframe {
    max-width: 100%;
    border-radius: 8px;
}

/* 版权 */

.zy-copyright {
    padding: 16px 18px;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-primary-soft);
    font-size: 12.5px;
    line-height: 1.9;
}

.zy-copyright__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-copyright__row+.zy-copyright__row {
    margin-top: 4px;
}

.zy-copyright__row .iconfont {
    flex: 0 0 auto;
    color: var(--zy-link);
    font-size: 13px;
}

.zy-copyright__label {
    flex: 0 0 auto;
    color: var(--zy-muted);
}

.zy-copyright__url {
    color: var(--zy-link);
    overflow-wrap: anywhere;
}

/* 区块标题 */

.zy-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.zy-section__title {
    position: relative;
    padding-left: 12px;
    font-size: 17px;
    font-weight: 600;
}

.zy-section__title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    border-radius: 2px;
    background: var(--zy-primary);
}

.zy-section__sub {
    font-size: 12.5px;
    color: var(--zy-muted);
}

/* 相关推荐 */

.zy-related {
    margin-top: 18px;
    padding: 20px 22px 22px;
}

.zy-related__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.zy-related__item {
    display: block;
    min-width: 0;
}

.zy-related__media {
    display: block;
    height: 90px;
    overflow: hidden;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
}

.zy-related__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--zy-ease);
}

.zy-related__item:hover .zy-related__media img {
    transform: scale(1.06);
}

.zy-related__title {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.65;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-related__item:hover .zy-related__title {
    color: var(--zy-link);
}

/* 上一篇 / 下一篇 */

.zy-adjacent {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.zy-adjacent__item {
    position: relative;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--zy-line);
    border-radius: var(--zy-radius);
    background: var(--zy-surface);
    box-shadow: var(--zy-shadow);
    transition: all .25s var(--zy-ease);
}

.zy-adjacent__item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--zy-primary);
}

.zy-adjacent__item:hover {
    border-color: var(--zy-link);
    box-shadow: var(--zy-shadow-hover);
}

.zy-adjacent__item--forward {
    text-align: right;
}

.zy-adjacent__item--forward::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

.zy-adjacent__label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--zy-muted);
}

.zy-adjacent__item--forward .zy-adjacent__label {
    justify-content: flex-end;
}

.zy-adjacent__title {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--zy-text-strong);
    overflow-wrap: anywhere;
}

.zy-adjacent__title:hover {
    color: var(--zy-link);
}

.zy-adjacent__title--empty {
    color: var(--zy-muted);
    font-size: 13px;
}

/* 评论 */

.zy-comments {
    margin-top: 18px;
    padding: 22px 26px 26px;
}

.zy-comments__list {
    margin-bottom: 8px;
}

.zy-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--zy-line);
}

.zy-comment:first-child {
    padding-top: 0;
}

.zy-comment:last-child {
    border-bottom: 0;
    padding-bottom: 8px;
}

.zy-comment__avatar {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--zy-primary-soft);
}

.zy-comment__initial {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--zy-primary-soft);
    color: var(--zy-link-soft);
    font-size: 15px;
}

.zy-comment__main {
    min-width: 0;
    flex: 1;
}

.zy-comment__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.zy-comment__name {
    font-size: 13.5px;
    color: var(--zy-text-strong);
}

.zy-comment__time {
    font-size: 12px;
    color: var(--zy-muted);
}

.zy-comment__content {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.85;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-comment__content p:last-child {
    margin-bottom: 0;
}

.zy-comment__reply {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface-alt);
    font-size: 13px;
    line-height: 1.8;
    color: var(--zy-text-body);
}

.zy-comment__reply-label {
    display: inline-block;
    margin-right: 8px;
    padding: 0 8px;
    border-radius: 4px;
    background: var(--zy-primary-soft);
    color: var(--zy-link-soft);
    font-size: 11.5px;
}

/* 表单 */

.zy-form {
    padding-top: 6px;
}

.zy-form--narrow {
    max-width: 320px;
    margin: 0 auto;
}

.zy-form__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.zy-field {
    display: block;
    min-width: 0;
}

.zy-field--block {
    margin-top: 12px;
}

.zy-input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--zy-line-strong);
    border-radius: 8px;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    font-size: 14px;
    outline: none;
    transition: border-color .2s var(--zy-ease);
}

.zy-input:focus {
    border-color: var(--zy-link);
}

.zy-input::placeholder {
    color: var(--zy-muted);
}

.zy-input--center {
    text-align: center;
}

.zy-textarea {
    height: auto;
    padding: 12px 14px;
    line-height: 1.8;
    resize: vertical;
}

.zy-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.zy-form__captcha {
    min-width: 0;
}

.zy-form__captcha img {
    display: block;
    width: 150px;
    height: 40px;
    object-fit: contain;
}

/* ------------------------------------------------------- 标签 / 归档 ---- */

.zy-tagcloud {
    padding: 22px;
}

.zy-tagcloud__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.zy-tagcloud__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 12px 16px;
    border: 1px solid var(--zy-line);
    border-radius: var(--zy-radius-sm);
    background: var(--zy-surface);
    color: var(--zy-text-body);
    transition: all .22s var(--zy-ease);
}

.zy-tagcloud__item:hover {
    border-color: var(--zy-link);
    background: var(--zy-primary-soft);
    color: var(--zy-link);
    transform: translateY(-2px);
}

.zy-tagcloud__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.zy-tagcloud__count {
    flex: 0 0 auto;
    font-style: normal;
    font-size: 12px;
    color: var(--zy-muted);
}

.zy-filter {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 20px;
    margin-bottom: 18px;
}

.zy-filter+.zy-filter {
    margin-top: -6px;
}

.zy-filter__label {
    flex: 0 0 auto;
    padding-top: 4px;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-filter__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.zy-filter__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 12px;
    border: 1px solid var(--zy-line);
    border-radius: 999px;
    color: var(--zy-text-body);
    font-size: 12.5px;
}

.zy-filter__item em {
    font-style: normal;
    color: var(--zy-muted);
    font-size: 11.5px;
}

.zy-filter__item:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-filter__item.is-active {
    border-color: var(--zy-link);
    background: var(--zy-primary);
    color: #ffffff;
}

.zy-filter__item.is-active em {
    color: #ffffff;
}

.zy-archive {
    padding: 20px 24px 24px;
}

.zy-archive__item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0 11px 18px;
    border-bottom: 1px dashed var(--zy-line);
}

.zy-archive__item:last-child {
    border-bottom: 0;
}

.zy-archive__dot {
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: var(--zy-primary-tint);
    transition: background .2s var(--zy-ease);
}

.zy-archive__item:hover .zy-archive__dot {
    background: var(--zy-primary);
}

.zy-archive__title {
    flex: 1;
    min-width: 0;
    font-size: 14.5px;
    color: var(--zy-text-body);
    overflow-wrap: anywhere;
}

.zy-archive__title:hover {
    color: var(--zy-link);
}

.zy-archive__badges {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}

/* --------------------------------------------------------------- 页脚 ---- */

.zy-footer {
    background: var(--zy-surface);
    border-top: 1px solid var(--zy-line);
}

.zy-footer__main {
    padding: 30px 0 24px;
}

.zy-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 26px;
}

.zy-footer__name {
    font-size: 17px;
    font-weight: 600;
    color: var(--zy-text-strong);
}

.zy-footer__slogan {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--zy-muted);
    overflow-wrap: anywhere;
}

.zy-footer__uptime {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--zy-muted);
}

.zy-footer__uptime .iconfont {
    color: var(--zy-link);
}

.zy-footer__nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px 18px;
}

.zy-footer__nav a {
    font-size: 13.5px;
    color: var(--zy-text-body);
}

.zy-footer__nav a:hover {
    color: var(--zy-link);
}

.zy-footer__links-title {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--zy-muted);
}

.zy-footer__links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.zy-footer__links-list a {
    padding: 2px 10px;
    border: 1px solid var(--zy-line);
    border-radius: 999px;
    color: var(--zy-text-body);
    font-size: 12.5px;
}

.zy-footer__links-list a:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-footer__bottom {
    border-top: 1px solid var(--zy-line);
    background: var(--zy-surface-alt);
}

.zy-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 12.5px;
    color: var(--zy-muted);
    flex-wrap: wrap;
}

.zy-footer__copyright {
    min-width: 0;
    overflow-wrap: anywhere;
}

.zy-footer__dot {
    margin: 0 6px;
}

.zy-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.zy-footer__meta a {
    color: var(--zy-muted);
}

.zy-footer__meta a:hover {
    color: var(--zy-link);
}

/* ----------------------------------------------------- 浮动按钮 / 抽屉 ---- */

.zy-to-top {
    position: fixed;
    right: 22px;
    bottom: 26px;
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--zy-line);
    border-radius: 50%;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    box-shadow: var(--zy-shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all .25s var(--zy-ease);
}

.zy-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.zy-to-top:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--zy-line-strong);
    border-radius: 50%;
    background: var(--zy-surface);
    color: var(--zy-text-body);
    cursor: pointer;
    transition: all .2s var(--zy-ease);
}

.zy-theme-toggle:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-theme-toggle--wide {
    width: 100%;
    height: 38px;
    border-radius: 8px;
    font-size: 13.5px;
}

.zy-theme-toggle__icon {
    transition: transform .3s var(--zy-ease);
}

.zy-theme-toggle__icon--moon {
    display: none;
}

html.zy-night .zy-theme-toggle__icon--sun {
    display: none;
}

html.zy-night .zy-theme-toggle__icon--moon {
    display: block;
}

.zy-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    pointer-events: none;
}

.zy-drawer__mask {
    position: absolute;
    inset: 0;
    background: rgba(12, 18, 28, .48);
    opacity: 0;
    transition: opacity .3s var(--zy-ease);
}

.zy-drawer__panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(84vw, 320px);
    padding: 18px 18px 24px;
    background: var(--zy-surface);
    box-shadow: 0 0 30px rgba(15, 25, 45, .18);
    overflow-y: auto;
    transform: translateX(-101%);
    transition: transform .32s var(--zy-ease);
}

.zy-drawer.is-open {
    pointer-events: auto;
}

.zy-drawer.is-open .zy-drawer__mask {
    opacity: 1;
}

.zy-drawer.is-open .zy-drawer__panel {
    transform: none;
}

.zy-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--zy-line);
}

.zy-drawer__brand {
    display: flex;
    align-items: center;
    min-width: 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--zy-text-strong);
}

.zy-drawer__brand img {
    max-height: 32px;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.zy-drawer__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--zy-line);
    border-radius: 50%;
    background: var(--zy-surface);
    color: var(--zy-muted);
    cursor: pointer;
}

.zy-drawer__close:hover {
    border-color: var(--zy-link);
    color: var(--zy-link);
}

.zy-drawer__search {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.zy-drawer__search .zy-input {
    flex: 1;
    min-width: 0;
}

.zy-drawer__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zy-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--zy-line);
    color: var(--zy-text-body);
    font-size: 14.5px;
}

.zy-drawer__link .iconfont {
    color: var(--zy-line-strong);
    font-size: 13px;
}

.zy-drawer__link:hover {
    color: var(--zy-link);
}

.zy-drawer__sub {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px 0 6px 14px;
    border-bottom: 1px solid var(--zy-line);
}

.zy-drawer__sublink {
    padding: 6px 0;
    font-size: 13.5px;
    color: var(--zy-muted);
}

.zy-drawer__sublink:hover {
    color: var(--zy-link);
}

.zy-drawer__foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

/* ------------------------------------------------------------- 提示 ---- */

.zy-toast {
    position: fixed;
    left: 50%;
    bottom: 12%;
    z-index: 90;
    padding: 9px 18px;
    border-radius: 999px;
    background: rgba(10, 14, 20, .72);
    color: #ffffff;
    font-size: 13px;
    transform: translateX(-50%);
    pointer-events: none;
}

/* --------------------------------------------------------- 滚动入场 ---- */

html.zy-js .zy-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--zy-ease), transform .6s var(--zy-ease);
}

html.zy-js .zy-reveal.is-visible {
    opacity: 1;
    transform: none;
}

html.zy-js .zy-reveal-d1 {
    transition-delay: .05s;
}

html.zy-js .zy-reveal-d2 {
    transition-delay: .1s;
}

html.zy-js .zy-reveal-d3 {
    transition-delay: .15s;
}

html.zy-js .zy-reveal-d4 {
    transition-delay: .2s;
}

/* ----------------------------------------------------------- 响应式 ---- */

@media (max-width: 1180px) {
    .zy-nav__link {
        padding: 0 11px;
    }

    .zy-search__input {
        width: 140px;
    }
}

@media (max-width: 1024px) {
    .zy-layout {
        grid-template-columns: minmax(0, 1fr) 264px;
        gap: 18px;
    }

    .zy-hero__viewport {
        height: 280px;
    }

    .zy-post {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .zy-post__media {
        height: 118px;
    }

    .zy-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .zy-footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .zy-footer__links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .zy-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .zy-side {
        gap: 16px;
    }

    .zy-nav {
        display: none;
    }

    .zy-search {
        display: none;
    }

    .zy-menu-btn,
    .zy-search-toggle {
        display: flex;
    }

    .zy-header__inner {
        height: 60px;
    }

    .zy-brand {
        flex: 1;
        justify-content: center;
        max-width: none;
        padding: 0 4px;
    }

    .zy-brand__logo {
        max-height: 32px;
    }

    .zy-header__slogan {
        display: none;
    }

    .zy-header__sub-inner {
        justify-content: flex-end;
        height: 40px;
    }

    .zy-header__sub {
        display: block;
    }

    .zy-main {
        padding: 16px 0 34px;
    }

    .zy-hero__viewport {
        height: 210px;
    }

    .zy-article {
        padding: 20px 18px 22px;
    }

    .zy-article__title {
        font-size: 22px;
    }

    .zy-article__date {
        display: none;
    }

    .zy-comments {
        padding: 18px 18px 20px;
    }

    .zy-form__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .zy-adjacent {
        grid-template-columns: minmax(0, 1fr);
    }

    .zy-adjacent__item--forward {
        text-align: left;
    }

    .zy-adjacent__item--forward .zy-adjacent__label {
        justify-content: flex-start;
    }

    .zy-adjacent__item--forward::before {
        left: 0;
        right: auto;
        border-radius: 0 3px 3px 0;
    }

    .zy-to-top {
        right: 14px;
        bottom: 26px;
        width: 38px;
        height: 38px;
    }

    .zy-footer__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .zy-footer__bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

@media (max-width: 620px) {
    .zy-container {
        padding: 0 14px;
    }

    .zy-hero__viewport {
        height: 168px;
    }

    .zy-hero__caption {
        bottom: 12px;
        padding: 6px 14px;
        font-size: 12px;
        max-width: 88%;
    }

    .zy-hero__control {
        padding: 8px 12px;
    }

    .zy-feed {
        padding: 2px 14px 16px;
    }

    .zy-post {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .zy-post__media {
        height: 84px;
        margin: 14px 0 10px;
    }

    .zy-post__body {
        padding: 14px 0 8px 12px;
    }

    .zy-post__title {
        font-size: 15px;
    }

    .zy-post__summary {
        margin-top: 6px;
        font-size: 12.5px;
        -webkit-line-clamp: 2;
    }

    .zy-post__meta {
        gap: 10px;
        padding: 6px 10px;
        font-size: 11.5px;
    }

    .zy-post__meta-unit {
        display: none;
    }

    .zy-post__cat {
        font-size: 11px;
    }

    .zy-article__title {
        font-size: 20px;
    }

    .zy-article__author-sub {
        gap: 8px;
        font-size: 11.5px;
    }

    .zy-prose {
        font-size: 14.5px;
    }

    .zy-prose h2 {
        font-size: 19px;
    }

    .zy-prose h3 {
        font-size: 16.5px;
    }

    .zy-related {
        padding: 16px 14px 18px;
    }

    .zy-related__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .zy-related__media {
        height: 78px;
    }

    .zy-pagehead {
        padding: 14px 16px;
    }

    .zy-pagehead__title {
        font-size: 18px;
    }

    .zy-tagcloud {
        padding: 16px;
    }

    .zy-tagcloud__list {
        grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    }

    .zy-archive {
        padding: 16px;
    }

    .zy-filter {
        padding: 12px 14px;
    }

    .zy-filter__label {
        display: none;
    }

    .zy-widget__head {
        padding: 12px 14px;
    }

    .zy-widget__body {
        padding: 14px;
    }

    .zy-author__body {
        padding: 0 14px 16px;
    }

    .zy-comments {
        padding: 16px 14px 18px;
    }

    .zy-form__foot {
        justify-content: flex-start;
    }
}

/* ---------------------------------------------- 减少动态效果偏好降级 ---- */

@media (prefers-reduced-motion: reduce) {

    .zy-page *,
    .zy-page *::before,
    .zy-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    html.zy-js .zy-reveal {
        opacity: 1;
        transform: none;
    }
}
