/* ==========================================================================
   COFFEEZE · 咖啡攻略  —— 全新设计系统
   设计思路：精品咖啡杂志风。深浓缩咖啡色做骨架，焦糖色做强调，
            奶油底做纸面，衬线标题制造阅读质感。
   ========================================================================== */

:root {
    --cz-ink: #1C1410;
    --cz-espresso: #241610;
    --cz-roast: #3B2418;
    --cz-caramel: #B07D56;
    --cz-caramel-soft: #D9B896;
    --cz-latte: #EFE0CE;
    --cz-cream: #F8F3EC;
    --cz-paper: #FFFFFF;
    --cz-muted: #8C7B6C;
    --cz-line: #E9DFD2;
    --cz-line-soft: #F2EBE1;
    --cz-shadow: 0 2px 10px rgba(60, 36, 20, .06);
    --cz-shadow-lg: 0 14px 38px rgba(60, 36, 20, .12);
    --cz-radius: 14px;
    --cz-radius-sm: 8px;
    --cz-max: 1240px;
    --cz-serif: "Songti SC", "Noto Serif SC", Georgia, "Times New Roman", serif;
    --cz-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--cz-sans);
    font-size: 15px;
    line-height: 1.75;
    color: var(--cz-ink);
    background: var(--cz-cream);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color .18s; }
a:hover { color: var(--cz-caramel); }
img { max-width: 100%; display: block; border: 0; }
h1, h2, h3, h4, h5 { font-family: var(--cz-serif); font-weight: 700; margin: 0; letter-spacing: .01em; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

.cz-container { width: 100%; max-width: var(--cz-max); margin: 0 auto; padding: 0 24px; }
.cz-main { padding: 40px 0 72px; }

/* ===========================  页头  =========================== */
.cz-header {
    background: var(--cz-espresso);
    color: #F4EDE4;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .22);
}
.cz-header-inner {
    display: flex;
    align-items: center;
    gap: 34px;
    height: 74px;
}
.cz-logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.cz-logo-mark {
    width: 38px; height: 38px; border-radius: 50%;
    border: 2px solid var(--cz-caramel);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--cz-serif); font-size: 17px; color: var(--cz-caramel-soft);
    letter-spacing: -1px; flex: 0 0 auto;
}
.cz-logo-text { line-height: 1.15; }
.cz-logo-name {
    font-family: var(--cz-serif); font-size: 22px; font-weight: 700;
    letter-spacing: .22em; color: #FBF6EE;
}
.cz-logo-sub {
    display: block; font-size: 10px; letter-spacing: .32em;
    color: var(--cz-caramel-soft); text-transform: uppercase; margin-top: 2px;
}

.cz-nav { flex: 1 1 auto; min-width: 0; }
.cz-nav ul { display: flex; flex-wrap: wrap; gap: 4px; }
.cz-nav li { position: relative; }
.cz-nav a {
    display: block; padding: 26px 14px; font-size: 15px; color: #E6DCCE;
    white-space: nowrap; position: relative;
}
.cz-nav a::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 18px;
    height: 2px; background: var(--cz-caramel); transform: scaleX(0);
    transition: transform .22s ease;
}
.cz-nav a:hover { color: #FFF; }
.cz-nav a:hover::after { transform: scaleX(1); }
.cz-nav a.cz-active { color: #FFF; }
.cz-nav a.cz-active::after { transform: scaleX(1); }

.cz-search { flex: 0 0 auto; position: relative; }
.cz-search input {
    width: 190px; padding: 9px 38px 9px 16px;
    border: 1px solid rgba(216, 184, 150, .32); border-radius: 999px;
    background: rgba(255, 255, 255, .07); color: #F4EDE4;
    font-size: 13px; font-family: var(--cz-sans); outline: none;
    transition: border-color .2s, background .2s, width .25s;
}
.cz-search input::placeholder { color: rgba(240, 232, 222, .5); }
.cz-search input:focus {
    border-color: var(--cz-caramel); background: rgba(255, 255, 255, .12); width: 220px;
}
.cz-search button {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border: 0; background: none; cursor: pointer;
    color: var(--cz-caramel-soft); font-size: 14px; padding: 0;
}
.cz-search button:hover { color: #FFF; }

.cz-menu-toggle {
    display: none; width: 40px; height: 38px; border: 1px solid rgba(216, 184, 150, .3);
    background: none; border-radius: 8px; cursor: pointer; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.cz-menu-toggle span {
    display: block; width: 18px; height: 2px; background: var(--cz-caramel-soft); border-radius: 2px;
}

/* ===========================  Hero  =========================== */
.cz-hero { padding: 40px 0 8px; }
.cz-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }
.cz-hero-main {
    position: relative; border-radius: var(--cz-radius); overflow: hidden;
    aspect-ratio: 16 / 9; background: var(--cz-roast); box-shadow: var(--cz-shadow);
}
.cz-hero-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cz-hero-main:hover img { transform: scale(1.035); }
.cz-hero-main::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0) 38%, rgba(28, 20, 16, .84) 100%);
}
.cz-hero-main .cz-hero-text {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 32px;
}
.cz-hero-main h2 {
    font-size: 30px; line-height: 1.32; color: #FFF; margin-bottom: 8px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.cz-hero-main h2 a:hover { color: var(--cz-caramel-soft); }

.cz-hero-side { display: grid; gap: 22px; grid-template-rows: 1fr 1fr; }
.cz-hero-side-item {
    position: relative; border-radius: var(--cz-radius); overflow: hidden;
    background: var(--cz-roast); box-shadow: var(--cz-shadow);
}
.cz-hero-side-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cz-hero-side-item:hover img { transform: scale(1.04); }
.cz-hero-side-item::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0) 40%, rgba(28, 20, 16, .8) 100%);
}
.cz-hero-side-item h3 {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 14px 18px; font-size: 16px; line-height: 1.45; color: #FFF;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===========================  区块标题  =========================== */
.cz-section { margin-top: 58px; }
.cz-section-head {
    display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px;
    padding-bottom: 12px; border-bottom: 1px solid var(--cz-line);
}
.cz-section-head h2 {
    font-size: 25px; position: relative; padding-left: 14px; line-height: 1.2;
}
.cz-section-head h2::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 22px; border-radius: 2px; background: var(--cz-caramel);
}
.cz-section-en {
    font-size: 11px; letter-spacing: .3em; color: var(--cz-muted);
    text-transform: uppercase; padding-bottom: 4px;
}
.cz-section-more {
    margin-left: auto; font-size: 13px; color: var(--cz-muted); white-space: nowrap;
}
.cz-section-more:hover { color: var(--cz-caramel); }

/* ===========================  卡片网格  =========================== */
.cz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cz-card {
    background: var(--cz-paper); border-radius: var(--cz-radius); overflow: hidden;
    box-shadow: var(--cz-shadow); display: flex; flex-direction: column;
    transition: transform .28s ease, box-shadow .28s ease;
}
.cz-card:hover { transform: translateY(-4px); box-shadow: var(--cz-shadow-lg); }
.cz-card-img { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--cz-latte); }
.cz-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cz-card:hover .cz-card-img img { transform: scale(1.05); }
.cz-card-cat {
    position: absolute; left: 12px; top: 12px; z-index: 2;
    background: rgba(36, 22, 16, .82); color: var(--cz-latte);
    font-size: 11px; padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px);
}
.cz-card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.cz-card-meta {
    font-size: 12px; color: var(--cz-muted); margin-bottom: 7px;
    display: flex; align-items: center; gap: 10px;
}
.cz-card-meta i { font-style: normal; color: var(--cz-line); }
.cz-card-title {
    font-size: 17px; line-height: 1.5; margin-bottom: 9px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-card-title a:hover { color: var(--cz-caramel); }
.cz-card-desc {
    font-size: 13px; line-height: 1.72; color: var(--cz-muted);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ===========================  栏目板块  =========================== */
.cz-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.cz-cat-block {
    background: var(--cz-paper); border-radius: var(--cz-radius);
    padding: 22px; box-shadow: var(--cz-shadow);
}
.cz-cat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cz-cat-head h3 { font-size: 19px; }
.cz-cat-head span { font-size: 11px; letter-spacing: .2em; color: var(--cz-muted); text-transform: uppercase; }
.cz-cat-head a { margin-left: auto; font-size: 12px; color: var(--cz-muted); }
.cz-cat-head a:hover { color: var(--cz-caramel); }
.cz-cat-feature { position: relative; display: block; border-radius: var(--cz-radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: var(--cz-latte); }
.cz-cat-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cz-cat-feature:hover img { transform: scale(1.04); }
.cz-cat-feature h4 {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
    font-size: 15px; color: #FFF; line-height: 1.45;
    background: linear-gradient(180deg, rgba(28, 20, 16, 0), rgba(28, 20, 16, .82));
}
.cz-cat-articles { margin-top: 14px; }
.cz-cat-articles li { border-bottom: 1px dashed var(--cz-line); }
.cz-cat-articles li:last-child { border-bottom: 0; }
.cz-cat-articles a { display: flex; gap: 12px; padding: 9px 0; align-items: center; }
.cz-cat-articles img {
    width: 64px; height: 44px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; background: var(--cz-latte);
}
.cz-cat-articles .cz-t {
    font-size: 14px; line-height: 1.5; flex: 1 1 auto;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-cat-articles .cz-d { font-size: 12px; color: var(--cz-muted); flex: 0 0 auto; }

/* ===========================  标签云 / 友链  =========================== */
.cz-tags-block {
    margin-top: 58px; background: var(--cz-paper); border-radius: var(--cz-radius);
    padding: 26px 28px; box-shadow: var(--cz-shadow);
}
.cz-tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.cz-tag-cloud a {
    font-size: 13px; padding: 5px 14px; border-radius: 999px;
    background: var(--cz-cream); color: var(--cz-muted); border: 1px solid var(--cz-line-soft);
}
.cz-tag-cloud a:hover { background: var(--cz-caramel); color: #FFF; border-color: var(--cz-caramel); }

.cz-friend { margin-top: 26px; font-size: 13px; color: var(--cz-muted); line-height: 2.1; }
.cz-friend a { margin-right: 16px; }
.cz-friend a:hover { color: var(--cz-caramel); }

/* ===========================  列表 / 栏目页  =========================== */
.cz-page-head { margin-bottom: 26px; }
.cz-crumb { font-size: 13px; color: var(--cz-muted); margin-bottom: 10px; }
.cz-crumb a:hover { color: var(--cz-caramel); }
.cz-crumb span { margin: 0 6px; color: var(--cz-line); }
.cz-page-head h1 {
    font-size: 32px; letter-spacing: .04em; position: relative; padding-left: 16px;
}
.cz-page-head h1::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 5px; height: 30px; border-radius: 3px; background: var(--cz-caramel);
}
.cz-page-head .cz-en {
    font-size: 11px; letter-spacing: .3em; color: var(--cz-muted);
    text-transform: uppercase; margin-top: 6px; padding-left: 16px;
}

.cz-row { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: start; }

.cz-list-item {
    display: flex; gap: 20px; padding: 22px 0;
    border-bottom: 1px solid var(--cz-line);
}
.cz-list-item:first-child { padding-top: 0; }
.cz-list-item-img {
    flex: 0 0 250px; aspect-ratio: 3 / 2; border-radius: var(--cz-radius-sm);
    overflow: hidden; background: var(--cz-latte);
}
.cz-list-item-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cz-list-item-img:hover img { transform: scale(1.05); }
.cz-list-item-body { flex: 1 1 auto; min-width: 0; }
.cz-list-item-title {
    font-size: 19px; line-height: 1.5; margin-bottom: 7px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-list-item-title a:hover { color: var(--cz-caramel); }
.cz-list-item-meta {
    font-size: 12px; color: var(--cz-muted); display: flex; gap: 14px; margin-bottom: 8px;
}
.cz-list-item-desc {
    font-size: 13.5px; color: var(--cz-muted); line-height: 1.75;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-list-item-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 7px; }
.cz-list-item-tags a {
    font-size: 11.5px; padding: 2px 9px; border-radius: 4px;
    background: var(--cz-latte); color: var(--cz-roast);
}
.cz-list-item-tags a:hover { background: var(--cz-caramel); color: #FFF; }

/* ===========================  侧栏  =========================== */
.cz-sidebar { display: grid; gap: 20px; position: sticky; top: 94px; }
.cz-widget {
    background: var(--cz-paper); border-radius: var(--cz-radius);
    padding: 20px 20px 22px; box-shadow: var(--cz-shadow);
}
.cz-widget-title {
    font-size: 17px; margin-bottom: 14px; padding-bottom: 10px;
    border-bottom: 2px solid var(--cz-latte); position: relative;
}
.cz-widget-title::after {
    content: ""; position: absolute; left: 0; bottom: -2px; width: 46px; height: 2px;
    background: var(--cz-caramel);
}
.cz-widget-list li { padding: 7px 0; border-bottom: 1px dashed var(--cz-line-soft); }
.cz-widget-list li:last-child { border-bottom: 0; }
.cz-widget-list a {
    font-size: 14px; line-height: 1.6; color: var(--cz-roast);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-widget-list a:hover { color: var(--cz-caramel); }
.cz-widget-num { counter-reset: cznum; }
.cz-widget-num li { display: flex; gap: 10px; align-items: flex-start; }
.cz-widget-num li i {
    counter-increment: cznum; font-style: normal; flex: 0 0 auto;
    width: 20px; height: 20px; border-radius: 5px; background: var(--cz-latte);
    color: var(--cz-roast); font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; margin-top: 3px;
}
.cz-widget-num li:nth-child(-n+3) i { background: var(--cz-caramel); color: #FFF; }
.cz-widget-pick { display: grid; gap: 14px; }
.cz-widget-pick img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: var(--cz-radius-sm); }
.cz-widget-pick .cz-t { font-size: 13.5px; line-height: 1.5; margin-top: 7px; }

/* ===========================  文章页  =========================== */
.cz-article { background: var(--cz-paper); border-radius: var(--cz-radius); padding: 34px 40px 40px; box-shadow: var(--cz-shadow); }
.cz-article-title { font-size: 32px; line-height: 1.42; margin-bottom: 14px; }
.cz-article-meta {
    font-size: 13px; color: var(--cz-muted); display: flex; gap: 16px;
    padding-bottom: 18px; margin-bottom: 24px; border-bottom: 1px solid var(--cz-line);
}
.cz-article-body { font-size: 16px; line-height: 1.95; color: #2E2620; }
.cz-article-body img { border-radius: var(--cz-radius-sm); margin: 18px auto; }
.cz-article-body p { margin: 0 0 18px; }
.cz-article-body h2, .cz-article-body h3 { font-size: 21px; margin: 30px 0 12px; }
.cz-article-body a { color: var(--cz-caramel); border-bottom: 1px solid rgba(176, 125, 86, .35); }
.cz-article-body a:hover { border-bottom-color: var(--cz-caramel); }
.cz-article-body blockquote {
    margin: 22px 0; padding: 14px 20px; background: var(--cz-cream);
    border-left: 3px solid var(--cz-caramel); border-radius: 0 8px 8px 0; color: var(--cz-roast);
}
.cz-article-body ul, .cz-article-body ol { padding-left: 24px; margin: 0 0 18px; }
.cz-article-body li { margin-bottom: 6px; }
.cz-article-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.cz-article-body th, .cz-article-body td { border: 1px solid var(--cz-line); padding: 8px 12px; }
.cz-article-body th { background: var(--cz-cream); }

.cz-article-tags {
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cz-line);
    display: flex; flex-wrap: wrap; gap: 9px; align-items: center;
}
.cz-article-tags-label { font-size: 13px; color: var(--cz-muted); }
.cz-article-tags a {
    font-size: 12.5px; padding: 4px 12px; border-radius: 999px;
    background: var(--cz-cream); color: var(--cz-roast); border: 1px solid var(--cz-line);
}
.cz-article-tags a:hover { background: var(--cz-caramel); color: #FFF; border-color: var(--cz-caramel); }

.cz-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.cz-nav-cell {
    padding: 15px 18px; border-radius: var(--cz-radius-sm);
    background: var(--cz-cream); border: 1px solid var(--cz-line-soft);
}
.cz-nav-cell:hover { border-color: var(--cz-caramel); }
.cz-nav-cell.cz-next { text-align: right; }
.cz-nav-label { font-size: 12px; color: var(--cz-muted); margin-bottom: 5px; }
.cz-nav-title {
    font-size: 14.5px; line-height: 1.55; font-family: var(--cz-serif);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cz-nav-cell[style*="opacity"] { opacity: .45; }

.cz-related { margin-top: 38px; }
.cz-related h3 { font-size: 20px; margin-bottom: 16px; }
.cz-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cz-related-grid .cz-card-title { font-size: 14px; -webkit-line-clamp: 2; }

/* ===========================  分页（迅睿输出 ul.pagination） =========================== */
.cz-pager {
    display: flex; justify-content: center; margin: 40px 0 0;
}
.cz-pager ul.pagination {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
    gap: 8px; margin: 0; padding: 0; list-style: none;
}
.cz-pager ul.pagination > li { display: inline-flex; list-style: none; margin: 0; padding: 0; }
.cz-pager ul.pagination a,
.cz-pager ul.pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 14px;
    background: var(--cz-paper); border: 1px solid var(--cz-line);
    border-radius: 8px; font-size: 14px; color: var(--cz-roast);
    transition: border-color .2s, color .2s, background .2s;
}
.cz-pager ul.pagination a:hover { border-color: var(--cz-caramel); color: var(--cz-caramel); }
/* 当前页：迅睿实际输出 class="active" */
.cz-pager ul.pagination > li.active > a,
.cz-pager ul.pagination > li.active > a:hover {
    background: var(--cz-espresso); border-color: var(--cz-espresso); color: #FFF; cursor: default;
}
/* 兼容旧写法 fn-cur */
.cz-pager .fn-cur { background: var(--cz-espresso); border-color: var(--cz-espresso); color: #FFF; }
/* 「共 N 条」是纯文字 */
.cz-pager ul.pagination > li:first-child > a,
.cz-pager ul.pagination > li:first-child > a:hover {
    background: transparent; border-color: transparent; color: var(--cz-muted);
    font-size: 13px; padding: 0 6px; cursor: default;
}

/* ===========================  页脚  =========================== */
.cz-footer { background: var(--cz-espresso); color: #C9BCAD; margin-top: 60px; padding: 46px 0 26px; }
.cz-footer a { color: #C9BCAD; }
.cz-footer a:hover { color: var(--cz-caramel-soft); }
.cz-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.cz-footer-brand .cz-logo { margin-bottom: 14px; }
.cz-footer-brand p { font-size: 13px; line-height: 1.9; max-width: 340px; }
.cz-footer h4 {
    font-size: 15px; color: #F0E7DC; margin-bottom: 14px; letter-spacing: .08em;
}
.cz-footer-col li { padding: 4px 0; font-size: 13.5px; }
.cz-footer-links {
    margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(216, 184, 150, .16);
    font-size: 13px; display: flex; flex-wrap: wrap; gap: 18px;
}
.cz-footer-copy { margin-top: 14px; font-size: 12.5px; color: #8C7B6C; }

/* ===========================  消息页  =========================== */
.cz-msg {
    background: var(--cz-paper); border-radius: var(--cz-radius); padding: 56px 30px;
    text-align: center; box-shadow: var(--cz-shadow);
}
.cz-msg h2 { font-size: 24px; margin-bottom: 12px; }
.cz-msg p { color: var(--cz-muted); margin-bottom: 20px; }
.cz-btn {
    display: inline-block; padding: 11px 30px; border-radius: 999px;
    background: var(--cz-espresso); color: #FFF !important; font-size: 14px;
}
.cz-btn:hover { background: var(--cz-caramel); color: #FFF !important; }

/* ===========================  响应式  =========================== */
@media (max-width: 1080px) {
    .cz-row { grid-template-columns: 1fr; }
    .cz-sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
    .cz-related-grid { grid-template-columns: repeat(3, 1fr); }
    .cz-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
    .cz-header-inner { height: 62px; gap: 14px; }
    .cz-menu-toggle { display: flex; order: 3; flex: 0 0 40px; }
    .cz-logo { order: 1; flex: 1 1 auto; min-width: 0; }
    .cz-logo-text { min-width: 0; overflow: hidden; }
    .cz-logo-name, .cz-logo-sub { white-space: nowrap; }
    .cz-search { order: 2; }
    .cz-search input { width: 130px; }
    .cz-search input:focus { width: 150px; }
    .cz-nav {
        order: 4; flex: 0 0 100%; display: none;
        border-top: 1px solid rgba(216, 184, 150, .16); margin: 0 -24px;
    }
    .cz-nav.cz-open { display: block; }
    .cz-nav ul { flex-direction: column; gap: 0; padding: 6px 24px 12px; }
    .cz-nav a { padding: 12px 0; border-bottom: 1px solid rgba(216, 184, 150, .1); }
    .cz-nav a::after { display: none; }
    .cz-hero-grid { grid-template-columns: 1fr; }
    .cz-hero-side { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); }
    .cz-hero-main h2 { font-size: 22px; }
    .cz-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .cz-cat-grid { grid-template-columns: 1fr; }
    .cz-list-item { flex-direction: column; gap: 12px; }
    .cz-list-item-img { flex: 0 0 auto; width: 100%; }
    .cz-article { padding: 24px 20px 30px; }
    .cz-article-title { font-size: 24px; }
    .cz-page-head h1 { font-size: 25px; }
    .cz-related-grid { grid-template-columns: repeat(2, 1fr); }
    .cz-sidebar { grid-template-columns: 1fr; }
    .cz-footer-grid { grid-template-columns: 1fr 1fr; }
    .cz-article-nav { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .cz-container { padding: 0 16px; }
    /* 窄屏隐藏搜索框，避免与 logo/汉堡按钮挤在一行导致溢出裁切 */
    .cz-search { display: none; }
    .cz-header-inner { gap: 10px; }
    .cz-logo-mark { width: 32px; height: 32px; font-size: 15px; }
    .cz-logo-name { font-size: 16px; letter-spacing: .12em; }
    .cz-logo-sub { font-size: 8px; letter-spacing: .2em; }
    .cz-grid { grid-template-columns: 1fr; }
    .cz-hero-side { grid-template-columns: 1fr; }
    .cz-related-grid { grid-template-columns: 1fr; }
    .cz-footer-grid { grid-template-columns: 1fr; }
    .cz-section-head h2 { font-size: 20px; }
    .cz-logo-name { font-size: 18px; letter-spacing: .16em; }
}

/* ==========================================================================
   兼容层：表单/评论/热标等未重写模板仍使用源站 fn- 类名，映射到新样式
   ========================================================================== */
.fn-container { width: 100%; max-width: var(--cz-max); margin: 0 auto; padding: 0 24px; }
.fn-main { padding: 40px 0 72px; }
.fn-list-header { margin-bottom: 26px; }
.fn-list-breadcrumb { font-size: 13px; color: var(--cz-muted); margin-bottom: 10px; }
.fn-list-breadcrumb a:hover { color: var(--cz-caramel); }
.fn-list-breadcrumb span { margin: 0 6px; color: var(--cz-line); }
.fn-tag-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.fn-tag-cloud a {
    font-size: 13px; padding: 5px 14px; border-radius: 999px;
    background: var(--cz-cream); color: var(--cz-muted); border: 1px solid var(--cz-line-soft);
}
.fn-tag-cloud a:hover { background: var(--cz-caramel); color: #FFF; border-color: var(--cz-caramel); }
.fn-tags-section {
    margin-top: 58px; background: var(--cz-paper); border-radius: var(--cz-radius);
    padding: 26px 28px; box-shadow: var(--cz-shadow);
}
.fn-msg {
    background: var(--cz-paper); border-radius: var(--cz-radius); padding: 56px 30px;
    text-align: center; box-shadow: var(--cz-shadow);
}
.fn-msg h2 { font-size: 24px; margin-bottom: 12px; }
.fn-msg p { color: var(--cz-muted); margin-bottom: 20px; }
.fn-btn { display: inline-block; padding: 11px 30px; border-radius: 999px; background: var(--cz-espresso); color: #FFF !important; }
.fn-btn:hover { background: var(--cz-caramel); color: #FFF !important; }
