/* ============================================================
   逗号CMS · 清风博客主题 v2（云鹤风格 · 编辑杂志式布局）
   布局：深色顶栏 + 推荐大图轮播 + 统计条 + 双列卡片网格 + 数字榜单
   配色：赤陶红 × 暖沙米 × 墨棕黑（与旧版完全区分）
   全端自适应：PC 多列网格 → 平板 2 列 → 手机单列
   ============================================================ */

:root {
    --yh-primary: #B4532A;
    --yh-primary-deep: #8F3E1E;
    --yh-primary-soft: #F7E8DF;
    --yh-ink: #2D2A26;
    --yh-ink-soft: #3E3A34;
    --yh-text: #2A2622;
    --yh-muted: #8A8578;
    --yh-bg: #F6F3EE;
    --yh-card: #FFFFFF;
    --yh-border: #E8E2D8;
    --yh-gold: #8A6D3B;
    --yh-radius: 16px;
    --yh-radius-sm: 10px;
    --yh-shadow: 0 6px 24px rgba(45, 42, 38, 0.07);
    --yh-shadow-hover: 0 14px 40px rgba(45, 42, 38, 0.14);
    --yh-header-h: 76px;
    --yh-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--yh-font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--yh-text);
    background: var(--yh-bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   头部：深色顶栏 + 主头部（LOGO 居中 + 导航居中）
   ============================================================ */
.yh-topbar {
    background: var(--yh-ink);
    color: #B9B2A6;
    font-size: 12.5px;
    letter-spacing: .4px;
}
.yh-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.yh-topbar-left { display: flex; align-items: center; gap: 20px; }
.yh-topbar-left i { color: var(--yh-gold); margin-right: 6px; }
.yh-topbar-right { display: flex; align-items: center; gap: 18px; }
.yh-topbar-right a { color: #B9B2A6; transition: color .25s ease; }
.yh-topbar-right a:hover { color: #fff; }
.yh-topbar-right i { margin-right: 5px; }

.yh-header {
    background: var(--yh-card);
    border-bottom: 1px solid var(--yh-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow .3s ease;
}
.yh-header.scrolled { box-shadow: 0 6px 24px rgba(45, 42, 38, 0.1); }

.yh-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--yh-header-h);
}

/* LOGO 左置（顶部条已做区分，主头部左 LOGO 右导航，清晰实用） */
.yh-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.yh-logo img { height: 38px; width: auto; }
.yh-logo-text { font-size: 23px; font-weight: 900; letter-spacing: 1.5px; color: var(--yh-ink); }
.yh-logo-text em { font-style: normal; color: var(--yh-primary); }

.yh-nav { flex: 1; }
.yh-nav > ul { display: flex; align-items: center; gap: 2px; }
.yh-nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 500;
    color: var(--yh-text);
    position: relative;
}
.yh-nav > ul > li > a:hover { color: var(--yh-primary); background: var(--yh-primary-soft); }
.yh-nav > ul > li > a.active { color: #fff; background: var(--yh-primary); }

.yh-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.yh-icon-btn {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--yh-text);
    font-size: 15px;
    background: var(--yh-bg);
    transition: all .25s ease;
}
.yh-icon-btn:hover { background: var(--yh-primary); color: #fff; }

/* 汉堡 */
.yh-burger { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 40px; height: 40px; }
.yh-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--yh-text); transition: all .3s ease; }
.yh-burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.yh-burger.active span:nth-child(2) { opacity: 0; }
.yh-burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 搜索下拉 */
.yh-search-panel {
    position: absolute;
    top: calc(var(--yh-header-h) - 4px);
    left: 0; right: 0;
    background: var(--yh-card);
    border-bottom: 1px solid var(--yh-border);
    box-shadow: 0 20px 44px rgba(45, 42, 38, 0.14);
    padding: 22px;
    display: none;
}
.yh-search-panel.active { display: block; animation: yhFadeIn .22s ease; }
.yh-search-form { display: flex; gap: 10px; max-width: 680px; margin: 0 auto; }
.yh-search-input {
    flex: 1;
    height: 50px;
    border: 2px solid var(--yh-border);
    border-radius: var(--yh-radius-sm);
    padding: 0 18px;
    font-size: 15px;
    color: var(--yh-text);
    outline: none;
    transition: border-color .25s ease;
}
.yh-search-input:focus { border-color: var(--yh-primary); }
.yh-search-btn {
    height: 50px;
    padding: 0 28px;
    border-radius: var(--yh-radius-sm);
    background: var(--yh-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .25s ease;
}
.yh-search-btn:hover { background: var(--yh-primary-deep); }

/* 移动端抽屉 */
.yh-overlay {
    position: fixed; inset: 0;
    background: rgba(30, 26, 22, 0.55);
    opacity: 0; visibility: hidden;
    transition: all .3s ease;
    z-index: 200;
}
.yh-overlay.active { opacity: 1; visibility: visible; }

.yh-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; max-width: 85vw;
    height: 100%;
    background: var(--yh-card);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transition: right .32s cubic-bezier(.4, 0, .2, 1);
    box-shadow: -8px 0 40px rgba(45, 42, 38, 0.16);
}
.yh-drawer.active { right: 0; }
.yh-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--yh-border); }
.yh-drawer-title { font-size: 17px; font-weight: 800; color: var(--yh-ink); }
.yh-drawer-body { flex: 1; overflow-y: auto; padding: 12px 0; }
.yh-drawer-body a {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 22px;
    font-size: 15px;
    color: var(--yh-text);
    border-left: 3px solid transparent;
}
.yh-drawer-body a i { width: 20px; text-align: center; color: var(--yh-muted); }
.yh-drawer-body a:hover { background: var(--yh-primary-soft); color: var(--yh-primary); }
.yh-drawer-body a.active { border-left-color: var(--yh-primary); background: var(--yh-primary-soft); color: var(--yh-primary); font-weight: 600; }
.yh-drawer-foot { padding: 16px 22px; border-top: 1px solid var(--yh-border); font-size: 13px; color: var(--yh-muted); }

/* ============================================================
   通用区块标题
   ============================================================ */
.yh-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.yh-sec-title {
    display: inline-flex; align-items: center; gap: 12px;
    font-size: 23px; font-weight: 900;
    color: var(--yh-ink);
    letter-spacing: .5px;
}
.yh-sec-title .bar {
    width: 5px; height: 24px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--yh-primary), var(--yh-gold));
}
.yh-sec-title small { font-size: 13px; font-weight: 500; color: var(--yh-muted); letter-spacing: 1px; margin-left: 4px; }
.yh-sec-more {
    font-size: 14px; color: var(--yh-muted);
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--yh-border);
    border-radius: 999px;
    transition: all .25s ease;
}
.yh-sec-more:hover { color: var(--yh-primary); border-color: var(--yh-primary); }
.yh-sec-more i { font-size: 12px; }

/* ============================================================
   首页 · 推荐大图轮播（全宽，区别于旧版静态精选）
   ============================================================ */
.yh-carousel-wrap { position: relative; margin-top: 26px; }

.yh-carousel { position: relative; border-radius: var(--yh-radius); overflow: hidden; box-shadow: var(--yh-shadow); background: var(--yh-ink); }
.yh-slide {
    position: absolute; inset: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    transition: opacity .6s ease, visibility .6s ease;
}
.yh-slide.active { opacity: 1; visibility: visible; position: relative; z-index: 2; }
.yh-slide a { display: block; position: relative; min-height: 440px; }
.yh-slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 5.5s ease; }
.yh-slide.active .yh-slide-bg { transform: scale(1); }
.yh-slide-shade {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(30,26,22,.12) 0%, rgba(30,26,22,.35) 55%, rgba(20,17,14,.86) 100%);
}
.yh-slide.no-img .yh-slide-bg { background: linear-gradient(135deg, #3E3A34 0%, var(--yh-ink) 60%, #1E1A16 100%); }
.yh-slide-content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 440px; padding: 44px 46px; color: #fff; max-width: 860px; }
.yh-slide-cat {
    align-self: flex-start;
    background: var(--yh-primary);
    color: #fff;
    font-size: 13px; font-weight: 600;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
    letter-spacing: .5px;
}
.yh-slide h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 900; line-height: 1.3; margin-bottom: 14px; text-shadow: 0 3px 16px rgba(0,0,0,.28); }
.yh-slide p { font-size: 15.5px; opacity: .9; line-height: 1.8; max-width: 620px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yh-slide-meta { display: flex; gap: 22px; margin-top: 18px; font-size: 13.5px; opacity: .85; }

/* 轮播箭头 */
.yh-car-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--yh-ink);
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    z-index: 5;
    box-shadow: 0 6px 20px rgba(0,0,0,.22);
    transition: all .25s ease;
}
.yh-car-arrow:hover { background: var(--yh-primary); color: #fff; }
.yh-car-prev { left: 18px; }
.yh-car-next { right: 18px; }

/* 轮播指示点 */
.yh-car-dots {
    position: absolute;
    left: 0; right: 0; bottom: 18px;
    display: flex; justify-content: center; gap: 8px;
    z-index: 5;
}
.yh-car-dots span {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    transition: all .3s ease;
    cursor: pointer;
}
.yh-car-dots span.active { width: 28px; border-radius: 999px; background: #fff; }

/* ============================================================
   首页 · 统计条（深色横幅）
   ============================================================ */
.yh-stats { margin-top: 26px; }
.yh-stats-inner {
    background: var(--yh-ink);
    border-radius: var(--yh-radius);
    padding: 26px 34px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    color: #fff;
}
.yh-stat { text-align: center; position: relative; }
.yh-stat + .yh-stat::before {
    content: "";
    position: absolute; left: -10px; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 36px;
    background: rgba(255,255,255,.14);
}
.yh-stat .num { font-size: 30px; font-weight: 900; color: var(--yh-gold); line-height: 1.2; }
.yh-stat .num i { font-size: 22px; margin-right: 6px; }
.yh-stat .label { font-size: 13px; color: #AEA79A; margin-top: 4px; letter-spacing: 1px; }

/* ============================================================
   首页 · 最新文章：双列大卡网格（无侧边栏）
   ============================================================ */
.yh-section { padding: 40px 0 0; }

.yh-grid-2 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }

.yh-card {
    background: var(--yh-card);
    border-radius: var(--yh-radius);
    overflow: hidden;
    box-shadow: var(--yh-shadow);
    border: 1px solid rgba(232, 226, 216, 0.7);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.yh-card:hover { transform: translateY(-6px); box-shadow: var(--yh-shadow-hover); }

.yh-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; display: block; }
.yh-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.yh-card:hover .yh-card-thumb img { transform: scale(1.06); }
.yh-card-thumb .thumb-ph {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--yh-primary-soft), #F0E2CE);
    display: flex; align-items: center; justify-content: center;
    color: var(--yh-primary); font-size: 36px;
}
.yh-card-cat {
    position: absolute; left: 16px; top: 14px;
    background: var(--yh-primary);
    color: #fff;
    font-size: 12px; font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    z-index: 2;
    letter-spacing: .5px;
}
.yh-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.yh-card-title { font-size: 19px; font-weight: 800; line-height: 1.5; margin-bottom: 10px; }
.yh-card-title a:hover { color: var(--yh-primary); }
.yh-card-excerpt {
    font-size: 14.5px; color: var(--yh-muted);
    line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 16px;
    flex: 1;
}
.yh-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; font-size: 13px; color: var(--yh-muted); border-top: 1px dashed var(--yh-border); padding-top: 14px; }
.yh-card-meta .mi { display: inline-flex; align-items: center; gap: 6px; }
.yh-card-meta .mi i { font-size: 12px; color: var(--yh-gold); }
.yh-tag { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.yh-tag.hot { background: #FDE8E0; color: var(--yh-primary-deep); }
.yh-tag.rec { background: var(--yh-primary-soft); color: var(--yh-primary); }

/* ============================================================
   首页 · 热门数字榜单（横排大序号）
   ============================================================ */
.yh-rank-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.yh-rank-card {
    background: var(--yh-card);
    border-radius: var(--yh-radius-sm);
    padding: 20px 22px;
    box-shadow: var(--yh-shadow);
    border: 1px solid rgba(232, 226, 216, 0.7);
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative;
    overflow: hidden;
}
.yh-rank-card:hover { transform: translateY(-4px); box-shadow: var(--yh-shadow-hover); }
.yh-rank-num {
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    color: var(--yh-gold);
    flex-shrink: 0;
    font-style: italic;
}
@supports (-webkit-text-stroke: 1px #000) {
    .yh-rank-num { color: transparent; -webkit-text-stroke: 1.5px var(--yh-gold); }
    .yh-rank-card:nth-child(-n+3) .yh-rank-num { -webkit-text-stroke-color: var(--yh-primary); }
}
.yh-rank-card:nth-child(-n+3) .yh-rank-num { color: var(--yh-primary); }
.yh-rank-body { min-width: 0; }
.yh-rank-title { font-size: 14.5px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; }
.yh-rank-title a:hover { color: var(--yh-primary); }
.yh-rank-meta { font-size: 12px; color: var(--yh-muted); display: flex; gap: 14px; }
.yh-rank-meta i { color: var(--yh-gold); margin-right: 3px; }

/* ============================================================
   首页 · 分类速览（胶囊导航）
   ============================================================ */
.yh-cat-bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.yh-cat-bar a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px;
    background: var(--yh-card);
    border: 1px solid var(--yh-border);
    border-radius: 999px;
    font-size: 14.5px; font-weight: 600;
    color: var(--yh-text);
    box-shadow: var(--yh-shadow);
    transition: all .28s ease;
}
.yh-cat-bar a i { color: var(--yh-gold); font-size: 13px; }
.yh-cat-bar a:hover { background: var(--yh-ink); border-color: var(--yh-ink); color: #fff; transform: translateY(-2px); }
.yh-cat-bar a:hover i { color: var(--yh-gold); }

/* ============================================================
   列表页（分类 / 搜索 / 全部）：大横幅 + 三列网格
   ============================================================ */
.yh-page-hero {
    background: linear-gradient(120deg, var(--yh-ink) 0%, #3E3A34 70%, var(--yh-primary-deep) 130%);
    color: #fff;
    border-radius: 0 0 var(--yh-radius) var(--yh-radius);
    padding: 54px 0 46px;
    position: relative;
    overflow: hidden;
}
.yh-page-hero::before {
    content: "";
    position: absolute;
    right: -80px; top: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(180, 83, 42, 0.22);
}
.yh-page-hero::after {
    content: "";
    position: absolute;
    right: 60px; bottom: -110px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,.14);
}
.yh-page-hero h1 {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 900;
    display: flex; align-items: center; gap: 14px;
    position: relative; z-index: 2;
}
.yh-page-hero h1 i { color: var(--yh-gold); }
.yh-page-hero .crumb { margin-top: 12px; font-size: 13.5px; color: #B9B2A6; position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.yh-page-hero .crumb a:hover { color: #fff; }
.yh-page-hero .crumb .sep { opacity: .5; font-size: 11px; }
.yh-page-hero .crumb .cur { color: var(--yh-gold); }

.yh-page-count { margin-top: 12px; font-size: 14px; color: #AEA79A; position: relative; z-index: 2; }
.yh-page-count strong { color: var(--yh-gold); font-size: 20px; margin: 0 4px; }

.yh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 34px 0 10px; }

/* 空状态 */
.yh-empty {
    background: var(--yh-card);
    border-radius: var(--yh-radius);
    padding: 80px 30px;
    text-align: center;
    box-shadow: var(--yh-shadow);
    border: 1px dashed var(--yh-border);
    margin: 40px 0;
}
.yh-empty i { font-size: 48px; color: #D6CFC2; display: inline-block; margin-bottom: 16px; }
.yh-empty p { color: var(--yh-muted); margin-bottom: 8px; }
.yh-btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 44px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--yh-primary);
    color: #fff;
    font-size: 14.5px; font-weight: 600;
    transition: all .25s ease;
    margin-top: 14px;
}
.yh-btn:hover { background: var(--yh-primary-deep); color: #fff; transform: translateY(-1px); }
.yh-btn-line { background: transparent; color: var(--yh-primary); border: 2px solid var(--yh-primary); }
.yh-btn-line:hover { background: var(--yh-primary); color: #fff; }

/* 分页 */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 34px 0 10px; }
.pagination span, .pagination a {
    min-width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 15px;
    border-radius: var(--yh-radius-sm);
    font-size: 14px;
    background: var(--yh-card);
    border: 1px solid var(--yh-border);
    color: var(--yh-text);
    transition: all .25s ease;
}
.pagination a:hover { border-color: var(--yh-primary); color: var(--yh-primary); }
.pagination .current { background: var(--yh-primary); border-color: var(--yh-primary); color: #fff; font-weight: 700; }
.pagination > span:first-child { border: none; background: none; color: var(--yh-muted); }

/* ============================================================
   文章详情页：居中沉浸式阅读（宽度与首页一致）
   ============================================================ */
.yh-article {
    max-width: 1240px;
    margin: 0 auto;
    padding: 30px 0 20px;
}

.yh-article-head {
    background: var(--yh-card);
    border-radius: var(--yh-radius);
    overflow: hidden;
    box-shadow: var(--yh-shadow);
    border: 1px solid rgba(232, 226, 216, 0.7);
}

.yh-article-cover { position: relative; aspect-ratio: 21 / 9; overflow: hidden; }
.yh-article-cover img { width: 100%; height: 100%; object-fit: cover; }
.yh-article-cover .cover-ph {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--yh-ink) 0%, #3E3A34 60%, var(--yh-primary-deep) 130%);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.18); font-size: 64px;
}
.yh-article-cover .cover-ph i { display: inline-block; }

.yh-article-main { padding: 34px 44px 40px; }

/* ★★★ 文章分类标签 ★★★ */
.yh-article-cat {
    margin-bottom: 14px;
}
.yh-article-cat a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--yh-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 18px;
    border-radius: 999px;
    letter-spacing: .5px;
    transition: background .25s ease;
}
.yh-article-cat a:hover {
    background: var(--yh-primary-deep);
    color: #fff;
}

/* ★★★ 文章元信息（作者/日期/阅读量/标签） ★★★ */
.yh-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 13.5px;
    color: var(--yh-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--yh-border);
}
.yh-article-meta .mi {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.yh-article-meta .mi i {
    color: var(--yh-gold);
    font-size: 13px;
}
.yh-article-meta .author {
    color: var(--yh-primary);
    font-weight: 700;
}

/* 正文（宽栏，与首页列表宽度一致） */
.yh-article-body {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px 10px;
    font-size: 16.5px;
    line-height: 2;
    color: #35302A;
}

/* 正文内容最大宽度限制，保持可读性 */
.yh-article-body .content-inner {
    max-width: 880px;
    margin: 0 auto;
}

/* ★★★ 正文图片居中 ★★★ */
.yh-article-body img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: var(--yh-radius-sm);
    max-width: 100%;
    height: auto;
    box-shadow: 0 6px 24px rgba(45, 42, 38, 0.12);
}

.yh-article-body p { margin-bottom: 1.25em; }
.yh-article-body h2, .yh-article-body h3, .yh-article-body h4 { margin: 1.7em 0 .75em; color: var(--yh-ink); font-weight: 800; line-height: 1.4; }
.yh-article-body h2 { font-size: 24px; }
.yh-article-body h3 { font-size: 20px; }
.yh-article-body a { color: var(--yh-primary); border-bottom: 1px solid rgba(180, 83, 42, 0.35); }
.yh-article-body a:hover { color: var(--yh-primary-deep); }
.yh-article-body blockquote {
    margin: 1.6em 0;
    padding: 16px 24px;
    border-left: 4px solid var(--yh-primary);
    background: var(--yh-primary-soft);
    border-radius: 0 var(--yh-radius-sm) var(--yh-radius-sm) 0;
    color: #6B4A38;
}
.yh-article-body ul, .yh-article-body ol { margin: 1em 0 1.3em; padding-left: 1.7em; }
.yh-article-body ul { list-style: disc; }
.yh-article-body ol { list-style: decimal; }
.yh-article-body li { margin-bottom: .5em; }
.yh-article-body code { background: var(--yh-primary-soft); color: var(--yh-primary-deep); padding: 2px 9px; border-radius: 6px; font-size: .9em; }
.yh-article-body pre {
    background: #221E19;
    color: #E8E0D4;
    padding: 22px 24px;
    border-radius: var(--yh-radius-sm);
    overflow-x: auto;
    margin: 1.6em 0;
    line-height: 1.75;
    font-size: 14px;
}
.yh-article-body pre code { background: none; color: inherit; padding: 0; }
.yh-article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15px; }
.yh-article-body th, .yh-article-body td { border: 1px solid var(--yh-border); padding: 10px 14px; text-align: left; }
.yh-article-body th { background: var(--yh-primary-soft); color: var(--yh-primary-deep); font-weight: 700; }
.yh-article-body hr { border: none; border-top: 1px solid var(--yh-border); margin: 2.2em 0; }

/* 阅读更多 */
.readmore-preview { position: relative; }
.readmore-overlay {
    position: relative;
    margin-top: -130px;
    height: 130px;
    background: linear-gradient(180deg, rgba(255,255,255,0), var(--yh-card) 88%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 20px;
}
.readmore-overlay-text { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--yh-primary); font-size: 14px; font-weight: 700; }
.readmore-overlay-arrow { animation: yhBounce 1.6s infinite; }
.readmore-wrapper { text-align: center; margin: 12px 0 6px; }
.readmore-btn {
    height: 46px; padding: 0 34px;
    border-radius: 999px;
    background: var(--yh-primary);
    color: #fff;
    font-size: 15px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 9px;
    transition: background .25s ease;
}
.readmore-btn:hover { background: var(--yh-primary-deep); }

/* 上一篇 / 下一篇（与正文同宽） */
.yh-pn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 100%;
    margin: 26px 20px 0;
    padding: 0;
}
.yh-pn a {
    display: flex; flex-direction: column; gap: 6px;
    background: var(--yh-card);
    border: 1px solid var(--yh-border);
    border-radius: var(--yh-radius-sm);
    padding: 18px 22px;
    box-shadow: var(--yh-shadow);
    transition: all .25s ease;
}
.yh-pn a:hover { border-color: var(--yh-primary); transform: translateY(-2px); }
.yh-pn .pn-label { font-size: 12.5px; color: var(--yh-muted); display: inline-flex; align-items: center; gap: 7px; letter-spacing: .5px; }
.yh-pn .pn-label i { color: var(--yh-gold); }
.yh-pn .pn-title { font-size: 15px; font-weight: 700; color: var(--yh-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yh-pn a:hover .pn-title { color: var(--yh-primary); }
.yh-pn .next { text-align: right; }

/* 相关文章 & 热门推荐（与正文同宽） */
.yh-more {
    max-width: 100%;
    margin: 0 20px;
    padding: 40px 0 0;
}
.yh-more .yh-sec-title { font-size: 19px; }
.yh-more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    background: #fff;
    padding: 20px 20px;
    border-radius: 12px;
}
.yh-more-card {
    background: var(--yh-card);
    border-radius: var(--yh-radius-sm);
    overflow: hidden;
    box-shadow: var(--yh-shadow);
    border: 1px solid rgba(232, 226, 216, 0.7);
    transition: transform .28s ease, box-shadow .28s ease;
}
.yh-more-card:hover { transform: translateY(-4px); box-shadow: var(--yh-shadow-hover); }
.yh-more-card .mc-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.yh-more-card .mc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.yh-more-card:hover .mc-thumb img { transform: scale(1.06); }
.yh-more-card .mc-thumb .thumb-ph { position: absolute; inset: 0; background: linear-gradient(135deg, var(--yh-primary-soft), #F0E2CE); display: flex; align-items: center; justify-content: center; color: var(--yh-primary); font-size: 28px; }
.yh-more-card .mc-body { padding: 16px 18px 18px; }
.yh-more-card .mc-title { font-size: 15px; font-weight: 700; line-height: 1.55; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.yh-more-card .mc-title a:hover { color: var(--yh-primary); }
.yh-more-card .mc-meta { font-size: 12px; color: var(--yh-muted); display: flex; gap: 14px; }
.yh-more-card .mc-meta i { color: var(--yh-gold); margin-right: 3px; }

/* ============================================================
   页脚
   ============================================================ */
.yh-footer { background: var(--yh-ink); color: #A9A294; margin-top: 54px; }
.yh-footer-main { padding: 48px 0 32px; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 44px; }
.yh-footer h4 { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; letter-spacing: .5px; }
.yh-footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 3px; border-radius: 2px; background: var(--yh-primary); }
.yh-footer .about { font-size: 14px; line-height: 1.9; margin-bottom: 16px; }
.yh-foot-name { color: #fff; font-weight: 900; font-size: 19px; margin-bottom: 12px; display: block; letter-spacing: 1px; }
.yh-foot-name em { font-style: normal; color: var(--yh-primary); }
.yh-foot-list { display: flex; flex-direction: column; gap: 10px; }
.yh-foot-list a { font-size: 14px; color: #A9A294; display: inline-flex; align-items: center; gap: 8px; transition: color .25s ease; }
.yh-foot-list a i { font-size: 10px; color: var(--yh-primary); }
.yh-foot-list a:hover { color: #fff; }
.yh-foot-links { display: flex; flex-wrap: wrap; gap: 12px; }
.yh-foot-links a { font-size: 13.5px; color: #A9A294; }
.yh-foot-links a:hover { color: var(--yh-primary); }

.yh-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.yh-footer-bottom a { color: #A9A294; }
.yh-footer-bottom a:hover { color: var(--yh-primary); }
.yh-footer-bottom .fr { display: flex; align-items: center; gap: 18px; }

/* 返回顶部 */
.yh-totop {
    position: fixed;
    right: 26px; bottom: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--yh-primary);
    color: #fff;
    font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px rgba(180, 83, 42, 0.4);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    z-index: 90;
}
.yh-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.yh-totop:hover { background: var(--yh-ink); }

/* ============================================================
   动画与响应式
   ============================================================ */
@keyframes yhFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes yhBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (max-width: 1080px) {
    .yh-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .yh-rank-grid { grid-template-columns: repeat(2, 1fr); }
    .yh-more-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
    .yh-nav { display: none; }
    .yh-burger { display: flex; }
    .yh-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .yh-stat:nth-child(3)::before { display: none; }
    .yh-slide a { min-height: 360px; }
    .yh-slide-content { min-height: 360px; padding: 32px; }
    .yh-footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .container { padding: 0 10px; }
    :root { --yh-header-h: 62px; }
    .yh-topbar-left .hide-m { display: none; }
    .yh-logo-text { font-size: 20px; }
    .yh-logo img { height: 32px; }

    .yh-slide a { min-height: 300px; }
    .yh-slide-content { min-height: 300px; padding: 22px 20px; }
    .yh-slide h2 { font-size: 21px; }
    .yh-slide p { display: none; }
    .yh-slide-meta { margin-top: 12px; font-size: 12.5px; gap: 14px; }
    .yh-car-arrow { width: 38px; height: 38px; font-size: 14px; }
    .yh-car-prev { left: 10px; }
    .yh-car-next { right: 10px; }

    .yh-stats-inner { padding: 20px 16px; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .yh-stat .num { font-size: 23px; }
    .yh-stat .label { font-size: 12px; }

    .yh-sec-title { font-size: 19px; }
    .yh-sec-head { margin-bottom: 18px; }
    .yh-section { padding-top: 30px; }

    .yh-grid-2, .yh-grid-3 { grid-template-columns: 1fr; gap: 18px; }
    .yh-rank-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .yh-rank-card { padding: 16px; flex-direction: column; gap: 10px; }
    .yh-rank-num { font-size: 28px; }

    .yh-page-hero { padding: 38px 0 32px; }
    .yh-page-hero h1 { font-size: 23px; }

    .yh-article-main { padding: 24px 20px 28px; }
    .yh-article-main h1 { font-size: 21px; }
    .yh-article-body { font-size: 16px; padding: 0 10px 10px; }
    .yh-article-cover { aspect-ratio: 16 / 9; }
    .yh-pn { grid-template-columns: 1fr; margin: 20px 10px 0; }
    .yh-pn .next { text-align: left; }
    .yh-more-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .yh-more { margin: 0 10px; padding: 30px 0 0; }

    .yh-footer-main { grid-template-columns: 1fr; gap: 30px; padding: 38px 0 26px; }
    .yh-footer-bottom { flex-direction: column; text-align: center; }

    .yh-search-form { flex-direction: column; }
    .yh-search-btn { justify-content: center; }

    .yh-totop { right: 16px; bottom: 20px; width: 44px; height: 44px; }
}

@media (max-width: 480px) {
    .yh-grid-2 { grid-template-columns: 1fr; }
    .yh-rank-grid { grid-template-columns: 1fr; }
    .yh-more-grid { grid-template-columns: 1fr; }
    .yh-article-body { padding: 0 10px 10px; }
    .yh-pn { margin: 20px 0 0; }
    .yh-more { margin: 0; }
}