/*
Theme Name: 南渡窑
Theme URI: http://www.hujiawang.cn/
Description: 南渡窑官方作品网站WordPress主题 - 完整复刻版
Author: 资深WordPress开发工程师
Author URI: http://www.hujiawang.cn/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: 陶瓷, 柴窑, 非遗, 响应式, 自定义器
Text Domain: jiahaiyao

南渡窑是源自雷州半岛南渡河沿岸的古法民窑集群，
其生产的高温颜色釉瓷深受广大茶友和仿古收藏圈友的喜爱。
*/

/* =====================================================================
   首页现代化整排自定义样式（front-page.php 使用，类名前缀 .ndy-）
   仅作用于新板块，不影响原 builder 的 comm.css / 轮播 Banner。
   ===================================================================== */
:root {
    --ndy-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", STSong, "SimSun", serif;
    --ndy-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Heiti SC", sans-serif;
    --ndy-ink: #2b2724;
    --ndy-ink-soft: #5b544c;
    --ndy-muted: #7a7164;
    --ndy-paper: #f7f3ec;
    --ndy-paper2: #f1ece2;
    --ndy-line: #e3dccf;
    --ndy-gold: #b08d57;
    --ndy-dark: #2b2724;
}

.ndy-section {
    font-family: var(--ndy-sans);
    color: var(--ndy-ink);
    -webkit-font-smoothing: antialiased;
}
.ndy-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ===== 0. Banner 轮播修复（宽屏截底 + 普通屏不空） ===== */
#layout_diy_1593744636,
#banner_style_01_1715659035187 {
    height: clamp(480px, 36vw, 760px) !important;
}
@media screen and (max-width: 640px) {
    #layout_diy_1593744636,
    #banner_style_01_1715659035187 {
        height: 170px !important;
    }
}

/* ===== 导航栏重新设计（精致博物馆风） ===== */
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li {
    margin: 0 2px;
}
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li > a {
    color: rgba(255,255,255,.82) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    letter-spacing: 3px !important;
    line-height: 1.2 !important;
    padding: 0 20px !important;
    position: relative;
    text-decoration: none !important;
    transition: color .35s ease, letter-spacing .35s ease;
}
/* hover：金色高亮 + 字间距微扩 + 底部金线动画 */
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li > a:hover {
    color: #d4af37 !important;
    letter-spacing: 5px !important;
}
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li > a::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 50%; transform: translateX(-50%);
    width: 0; height: 1.5px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    transition: width .4s ease;
}
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li > a:hover::after {
    width: 70%;
}
/* 当前页激活态（WordPress 自动加 current-menu-item） */
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li.current-menu-item > a,
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li.current-page-ancestor > a {
    color: #d4af37 !important;
    font-weight: 500 !important;
}
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li.current-menu-item > a::after,
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li.current-page-ancestor > a::after {
    width: 60%;
}
/* 去掉 builder 的旧 hover 色 */
#dh_style_46_1716174648766 .menuStyle_46 .menuUl > li > a:hover {
    /* gold already set above, override builder red */ 
}
#dh_style_46_1716174648766 .menuStyle_46 .menuUl #hot > a {
    color: #d4af37 !important;
}

/* 区块标题 */
.ndy-section-head { text-align: center; margin-bottom: 52px; }
.ndy-section-kicker {
    display: block;
    letter-spacing: .32em;
    font-size: 12px;
    color: var(--ndy-gold);
    text-transform: uppercase;
}
.ndy-section-title {
    font-family: var(--ndy-serif);
    font-size: clamp(26px, 4vw, 40px);
    color: var(--ndy-ink);
    margin: .45em 0 .35em;
    font-weight: 600;
    letter-spacing: .08em;
}
.ndy-section-sub { color: var(--ndy-muted); font-size: 15px; line-height: 1.8; }

/* 2. 品牌引言 */
.ndy-intro {
    background: var(--ndy-paper);
    text-align: center;
    padding: clamp(64px, 9vw, 120px) 0;
}
.ndy-kicker {
    letter-spacing: .42em;
    font-size: 13px;
    color: var(--ndy-muted);
    text-transform: uppercase;
    margin: 0;
}
.ndy-title {
    font-family: var(--ndy-serif);
    font-size: clamp(44px, 8vw, 80px);
    color: var(--ndy-ink);
    margin: .28em 0;
    font-weight: 600;
    letter-spacing: .14em;
}
.ndy-rule {
    display: block;
    width: 64px;
    height: 2px;
    background: var(--ndy-gold);
    margin: 26px auto;
}
.ndy-lead {
    font-size: clamp(15px, 2vw, 18px);
    line-height: 2.1;
    color: var(--ndy-ink-soft);
    max-width: 720px;
    margin: 0 auto;
}

/* 3. 代表作特写 */
.ndy-feature { background: var(--ndy-paper2); padding: clamp(56px, 8vw, 104px) 0; }
.ndy-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ndy-feature-item {
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    box-shadow: 0 14px 36px rgba(40, 30, 20, .10);
    background: #ddd5c7;
}
.ndy-feature-item img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.ndy-feature-item:hover img { transform: scale(1.05); }

/* 可点击放大：鼠标手势 */
.ndy-lightbox-trigger { cursor: zoom-in; position: relative; }
.ndy-lightbox-trigger::after {
    content: '点击放大';
    position: absolute; bottom: 12px; right: 12px;
    background: rgba(0,0,0,.55); color: #fff;
    font-size: 12px; padding: 3px 10px; border-radius: 4px;
    opacity: 0; transition: opacity .3s; pointer-events: none;
}
.ndy-lightbox-trigger:hover::after { opacity: 1; }

/* ========== Lightbox 全屏放大遮罩层 ========== */
#ndy-lightbox-overlay {
    display: none; position: fixed; inset: 0; z-index: 99998;
    background: rgba(0, 0, 0, .88);
    justify-content: center; align-items: center;
    flex-direction: column;
}
#ndy-lightbox-overlay.active { display: flex; }
#ndy-lightbox-overlay img {
    max-width: 92vw; max-height: 88vh;
    object-fit: contain; border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,.5);
    animation: ndyLbIn .3s ease-out;
    cursor: zoom-out;
}
@keyframes ndyLbIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}
#ndy-lightbox-close {
    position: absolute; top: 20px; right: 24px;
    color: #ccc; font-size: 34px; line-height: 1;
    cursor: pointer; background: none; border: none; padding: 4px 10px;
    transition: color .2s; z-index: 1;
}
#ndy-lightbox-close:hover { color: #fff; }
#ndy-lightbox-hint {
    color: #999; font-size: 13px; margin-top: 14px;
    letter-spacing: 1px; pointer-events: none;
}

/* 4. 作品画廊（flex 布局，最后一行自动居中对齐） */
.ndy-gallery { background: var(--ndy-paper); padding: clamp(56px, 8vw, 104px) 0; }
.ndy-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center; /* 最后一行不足时居中 */
}
.ndy-gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
    background: #e9e2d6;
    width: calc((100% - (18px * 3)) / 4); /* 4 列等宽 */
    aspect-ratio: 1 / 1;
    cursor: pointer;
    box-sizing: border-box;
    flex-shrink: 0;
}
.ndy-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.ndy-gallery-item:hover img { transform: scale(1.07); }
.ndy-gallery-cap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 16px 14px 14px;
    background: linear-gradient(to top, rgba(20,15,10,.78), rgba(20,15,10,0));
    color: #f3ece0;
    font-size: 13px;
    letter-spacing: .14em;
    transform: translateY(100%);
    opacity: 0;
    transition: transform .4s ease, opacity .4s ease;
}
.ndy-gallery-item:hover .ndy-gallery-cap { transform: translateY(0); opacity: 1; }

/* 5. 非遗传承 */
.ndy-heritage {
    background: var(--ndy-dark);
    color: #f3ece0;
    padding: clamp(60px, 8vw, 110px) 0;
}
.ndy-heritage-inner {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 52px;
    align-items: center;
}
.ndy-heritage-img { margin: 0; }
.ndy-heritage-img img {
    width: 100%;
    display: block;
    border-radius: 3px;
    box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.ndy-heritage-text .ndy-section-kicker { color: var(--ndy-gold); }
.ndy-heritage-text .ndy-section-title { color: #f3ece0; }
.ndy-heritage-p {
    line-height: 2.05;
    color: #cfc6b8;
    font-size: 15px;
    margin: 18px 0 0;
}
.ndy-poem {
    border-left: 2px solid var(--ndy-gold);
    padding-left: 18px;
    margin: 26px 0 0;
    font-family: var(--ndy-serif);
    font-size: clamp(17px, 2.4vw, 21px);
    line-height: 1.95;
    color: #e9dfce;
}

/* 6. 臻藏系列（包裹原产品列表） */
.ndy-collection { background: var(--ndy-paper2); padding: clamp(56px, 8vw, 104px) 0; }
.ndy-collection .prod_default23 { width: 100%; }
.ndy-collection #prod_Ulist {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2%;
    padding: 0;
    margin: 0;
    list-style: none;
}
.ndy-collection #prod_Ulist li:empty { display: none !important; }
.ndy-collection .prod_Item {
    width: 18% !important;
    margin: 0 0 26px !important;
    background: #fff;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(40,30,20,.07);
    transition: transform .35s ease, box-shadow .35s ease;
}
.ndy-collection .prod_Item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(40,30,20,.14);
}
.ndy-collection .prod_Item .prod_img img { width: 100%; }

/* 响应式 */
@media (max-width: 980px) {
    .ndy-feature-grid { grid-template-columns: 1fr; gap: 20px; }
    .ndy-gallery-item { width: calc((100% - (18px * 2)) / 3); }
    .ndy-heritage-inner { grid-template-columns: 1fr; gap: 34px; }
    .ndy-collection .prod_Item { width: 31% !important; }
}
@media (max-width: 640px) {
    .ndy-container { padding: 0 18px; }
    .ndy-gallery-item { width: calc((100% - 12px) / 2); gap: 12px; }
    .ndy-collection .prod_Item { width: 48% !important; }
    .ndy-section-sub { font-size: 14px; }
}
@media (max-width: 420px) {
    .ndy-gallery-item { width: calc(100% - 12px); gap: 12px; }
    .ndy-collection .prod_Item { width: 100% !important; }
}

/* ===== 内页 hero（产品 / 新闻，与首页统一风格） ===== */
.ndy-subhero {
    position: relative;
    min-height: clamp(300px, 40vw, 440px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #16110c;
}
.ndy-subhero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}
.ndy-subhero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,13,9,.42) 0%, rgba(18,13,9,.64) 100%);
}
.ndy-subhero-content { position: relative; z-index: 2; padding: 40px 0; }
.ndy-subhero .ndy-kicker { color: var(--ndy-gold); }
.ndy-subhero .ndy-title { color: #f6efe3; margin: 14px 0 0; }
.ndy-subhero .ndy-rule { background: var(--ndy-gold); margin: 20px auto; }
.ndy-subhero .ndy-lead { color: #e7ddcd; max-width: 640px; margin: 0 auto; }

/* 移动端内页 hero 缩小高度 */
@media screen and (max-width: 640px) {
    .ndy-subhero {
        min-height: clamp(160px, 35vh, 240px);
    }
    .ndy-subhero-content { padding: 24px 0; }
    .ndy-subhero .ndy-kicker { font-size: 12px; }
    .ndy-subhero .ndy-title { font-size: 22px; margin: 8px 0 0; }
    .ndy-subhero .ndy-rule { margin: 12px auto; width: 36px !important; }
    .ndy-subhero .ndy-lead { font-size: 13px; display: none; } /* 移动端隐藏引导文字节省空间 */
}

/* 小节标题 */
.ndy-sec-head { text-align: center; padding: clamp(48px, 7vw, 88px) 0 clamp(26px, 4vw, 42px); }
.ndy-sec-head .ndy-section-kicker { display: block; margin-bottom: 14px; }
.ndy-sec-head .ndy-section-title { color: var(--ndy-ink); }
.ndy-sec-head .ndy-section-sub { margin: 14px auto 0; max-width: 560px; }

/* ===== 产品页 / 新闻页 左右分栏重排版（全新 .nh- 命名空间） ===== */

/* 内页主容器（与首页 ndy-container 一致，内容居中+左右留白） */
.nh-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* 整页左右分栏 */
.nh-layout { display: flex; align-items: flex-start; gap: clamp(30px, 4vw, 60px); }
.nh-aside {
    flex: 0 0 290px;
    width: 290px;
    position: sticky;
    top: 26px;
    align-self: flex-start;
}
.nh-main { flex: 1; min-width: 0; }

/* 左栏：品牌小传 */
.nh-aside-brand {
    background: var(--ndy-ink);
    color: #f3ece0;
    padding: 32px 28px 36px;
    border-radius: 4px;
}
.nh-aside-kicker { display: block; color: var(--ndy-gold); font-size: 12px; letter-spacing: .2em; }
.nh-aside-brand h3 { font-family: var(--ndy-serif); font-size: 24px; margin: 12px 0 0; color: #f6efe3; letter-spacing: .08em; }
.nh-aside-rule { display: block; width: 38px; height: 2px; background: var(--ndy-gold); margin: 16px 0; }
.nh-aside-brand p { color: rgba(243,236,224,.72); font-size: 13px; line-height: 2; margin: 0; }

/* 左栏：竖排导航 / 筛选 */
.nh-aside-nav { margin-top: 26px; }
.nh-nav-title { font-size: 12px; letter-spacing: .22em; color: var(--ndy-ink-soft); margin: 0 0 14px; padding-left: 2px; }

.nh-filter-v { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ndy-line); }
.nh-filter-v li {
    list-style: none;
    padding: 15px 6px;
    border-bottom: 1px solid var(--ndy-line);
    color: var(--ndy-ink-soft);
    font-size: 15px;
    letter-spacing: .06em;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all .3s ease;
}
.nh-filter-v li::after { content: '\203A'; color: var(--ndy-line); transition: all .3s ease; }
.nh-filter-v li:hover { color: var(--ndy-ink); padding-left: 12px; }
.nh-filter-v li:hover::after { color: var(--ndy-gold); }
.nh-filter-v li.is-active { color: var(--ndy-ink); font-weight: 600; }
.nh-filter-v li.is-active::after { color: var(--ndy-gold); }

.nh-recent { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ndy-line); }
.nh-recent li { border-bottom: 1px solid var(--ndy-line); }
.nh-recent a { display: block; padding: 13px 2px; color: var(--ndy-ink-soft); font-size: 14px; line-height: 1.5; text-decoration: none; transition: all .3s ease; }
.nh-recent a:hover { color: var(--ndy-ink); padding-left: 8px; }
.nh-recent span { display: block; color: var(--ndy-gold); font-size: 12px; letter-spacing: .1em; margin-top: 4px; }

.nh-links { list-style: none; margin: 0; padding: 0; }
.nh-links li { border-bottom: 1px solid var(--ndy-line); }
.nh-links a { display: block; padding: 14px 2px; color: var(--ndy-ink-soft); font-size: 15px; text-decoration: none; letter-spacing: .06em; transition: all .3s ease; }
.nh-links a:hover { color: var(--ndy-gold); padding-left: 8px; }

/* ===== 产品条目：左右图文（奇偶镜像） ===== */
.nh-prod-rows { list-style: none; margin: 0; padding: 0; }
.nh-prod-row {
    display: flex;
    align-items: center;
    gap: clamp(26px, 4vw, 56px);
    padding: clamp(30px, 4vw, 50px) 0;
    border-bottom: 1px solid var(--ndy-line);
}
.nh-prod-row:first-child { padding-top: 0; }
.nh-prod-row:nth-child(even) { flex-direction: row-reverse; }
.nh-prod-media {
    flex: 0 0 46%;
    width: 46%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: block;
    background: var(--ndy-paper2);
    border-radius: 4px;
}
.nh-prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.nh-prod-row:hover .nh-prod-media img { transform: scale(1.06); }
.nh-prod-body { flex: 1; min-width: 0; }
.nh-prod-index { font-family: var(--ndy-serif); font-size: 13px; letter-spacing: .22em; color: var(--ndy-gold); }
.nh-prod-title { font-family: var(--ndy-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; margin: 12px 0 14px; }
.nh-prod-title a { color: var(--ndy-ink); text-decoration: none; }
.nh-prod-title a:hover { color: var(--ndy-gold); }
.nh-prod-desc { color: var(--ndy-ink-soft); line-height: 1.95; font-size: 15px; margin: 0 0 18px; }
.nh-prod-price { color: var(--ndy-gold); font-size: 18px; letter-spacing: .04em; margin-bottom: 22px; }
.nh-prod-more {
    display: inline-block; padding: 11px 32px; border: 1px solid var(--ndy-ink);
    color: var(--ndy-ink); border-radius: 999px; font-size: 14px; letter-spacing: .1em;
    text-decoration: none; transition: all .3s ease;
}
.nh-prod-more:hover { background: var(--ndy-ink); color: #f6efe3; }

/* ===== 新闻条目：左右图文（奇偶镜像） ===== */
.nh-news-rows { list-style: none; margin: 0; padding: 0; }
.nh-news-row {
    display: flex; align-items: center; gap: clamp(26px, 4vw, 52px);
    padding: clamp(28px, 3.6vw, 46px) 0; border-bottom: 1px solid var(--ndy-line);
}
.nh-news-row:first-child { padding-top: 0; }
.nh-news-row:nth-child(even) { flex-direction: row-reverse; }
.nh-news-media { flex: 0 0 44%; width: 44%; aspect-ratio: 16/10; overflow: hidden; display: block; background: var(--ndy-paper2); border-radius: 4px; }
.nh-news-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.nh-news-row:hover .nh-news-media img { transform: scale(1.06); }
.nh-news-body { flex: 1; min-width: 0; }
.nh-news-date { color: var(--ndy-gold); font-size: 13px; letter-spacing: .14em; }
.nh-news-title { font-family: var(--ndy-serif); font-size: clamp(20px, 2.2vw, 27px); line-height: 1.45; margin: 10px 0 12px; }
.nh-news-title a { color: var(--ndy-ink); text-decoration: none; }
.nh-news-title a:hover { color: var(--ndy-gold); }
.nh-news-hr { display: block; width: 42px; height: 2px; background: var(--ndy-gold); margin: 0 0 14px; }
.nh-news-excerpt { color: var(--ndy-ink-soft); line-height: 1.95; font-size: 14px; margin: 0 0 16px; }
.nh-news-more { display: inline-block; padding: 8px 24px; border: 1px solid var(--ndy-gold); color: var(--ndy-gold); border-radius: 999px; font-size: 13px; text-decoration: none; transition: all .3s ease; }
.nh-news-more:hover { background: var(--ndy-gold); color: #fff; }

/* 分页 */
.nh-page { margin-top: clamp(36px, 5vw, 58px); text-align: center; }
.nh-page .page-numbers {
    display: inline-block; min-width: 38px; padding: 9px 12px; margin: 0 4px;
    border: 1px solid var(--ndy-line); border-radius: 4px; color: var(--ndy-ink-soft);
    font-size: 14px; text-decoration: none; transition: all .3s ease;
}
.nh-page .page-numbers.current,
.nh-page .page-numbers:hover { background: var(--ndy-ink); color: #f6efe3; border-color: var(--ndy-ink); }

/* 响应式 */
@media (max-width: 980px) {
    .nh-layout { flex-direction: column; }
    .nh-aside { position: static; width: 100%; flex: none; }
    .nh-aside-brand { padding: 26px 22px 28px; }
    .nh-filter-v { display: flex; flex-wrap: wrap; gap: 10px; border: none; }
    .nh-filter-v li { border: 1px solid var(--ndy-line); border-radius: 999px; padding: 10px 18px; }
    .nh-filter-v li::after { display: none; }
    .nh-filter-v li:hover { padding-left: 18px; }
}
@media (max-width: 640px) {
    .nh-wrap { padding: 0 18px; }
    .nh-prod-row, .nh-news-row { flex-direction: column !important; gap: 18px; }
    .nh-prod-media, .nh-news-media { width: 100%; flex: none; }
}

/* ===== 臻藏系列（首页）干净卡片网格 ===== */
.ndy-treasure-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nh-treasure-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(40,30,20,.07);
    transition: transform .35s ease, box-shadow .35s ease;
}
.nh-treasure-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(40,30,20,.14);
}
.nh-treasure-img {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--ndy-paper2);
}
.nh-treasure-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .9s cubic-bezier(.2,.7,.2,1);
}
.nh-treasure-card:hover .nh-treasure-img img { transform: scale(1.06); }
.nh-treasure-body { padding: 18px 20px 22px; text-align: center; }
.nh-treasure-name {
    margin: 0 0 8px;
    font-family: var(--ndy-serif);
    font-size: 17px;
    letter-spacing: .06em;
    line-height: 1.4;
}
.nh-treasure-name a {
    color: var(--ndy-ink);
    text-decoration: none;
}
.nh-treasure-name a:hover { color: var(--ndy-gold); }
.nh-treasure-cat {
    display: inline-block;
    font-size: 11px;
    letter-spacing: .2em;
    color: var(--ndy-gold);
    border: 1px solid rgba(176,141,87,.3);
    padding: 3px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.nh-treasure-more {
    display: inline-block;
    padding: 8px 26px;
    border: 1px solid var(--ndy-ink);
    color: var(--ndy-ink);
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: .1em;
    text-decoration: none;
    transition: all .3s ease;
}
.nh-treasure-more:hover {
    background: var(--ndy-ink);
    color: #f6efe3;
}

/* 覆盖 builder 残留（防止旧 prod_Item 样式干扰） */
.ndy-collection .prod_default23,
.ndy-collection #prod_Ulist { all: unset; display: contents; }
.ndy-collection li.prod_Item { all: unset; }

@media (max-width: 980px) {
    .ndy-treasure-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 520px) {
    .ndy-treasure-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .nh-treasure-body { padding: 14px 14px 18px; }
    .nh-treasure-name { font-size: 15px; }
}

/* ========== 6. 媒体报道（首页，暖色底 + 左图 + 右纯文字列表） ========== */
.ndy-media { background: var(--ndy-paper); }
.ndy-media-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 28px; padding-bottom: 14px;
    border-bottom: 2px solid rgba(42,33,24,.12);
}
.ndy-media-title {
    font-size: 20px; color: var(--ndy-ink); letter-spacing: 3px; font-weight: 700;
    margin: 0; line-height: 1.4;
}
.ndy-media-more {
    font-size: 13px; color: var(--ndy-gold); letter-spacing: 2px;
    text-decoration: none; transition: opacity .3s;
}
.ndy-media-more:hover { opacity: .7; }

/* 两栏主体 */
.ndy-media-body { display: flex; gap: 40px; align-items: flex-start; }

/* 左侧大图 */
.ndy-media-pic {
    flex: 0 0 420px; margin: 0;
    border-radius: 3px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(42,33,24,.10);
}
.ndy-media-pic img { width: 100%; height: auto; display: block; }

/* 右侧文字列表 */
.ndy-media-list {
    flex: 1; list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 6px;
}
.ndy-media-item {
    border-bottom: 1px solid rgba(42,33,24,.07);
    padding: 13px 8px; border-radius: 2px;
    transition: background .25s;
}
.ndy-media-item:last-child { border-bottom: none; }
.ndy-media-item:hover { background: rgba(212,175,55,.06); }
.ndy-media-item a {
    text-decoration: none; color: #3d352a;
    font-size: 15px; line-height: 1.75; letter-spacing: .5px;
    display: block; transition: color .3s;
}
.ndy-media-item a:hover { color: var(--ndy-gold); }
.ndy-media-src {
    color: var(--ndy-gold); font-weight: 600; margin-right: 5px;
}

/* 响应式 */
@media (max-width: 900px) {
    .ndy-media-body { flex-direction: column; gap: 24px; }
    .ndy-media-pic { flex: none; width: 100%; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .ndy-media-head { margin-bottom: 20px; }
    .ndy-media-title { font-size: 17px; letter-spacing: 2px; }
    .ndy-media-pic { max-width: 100%; }
    .ndy-media-item a { font-size: 14px; }
}


/* ============================================================
   文章详情页 (single.php) —— 与首页 / 新闻 / 产品页统一设计
   ============================================================ */
body.single .nh-section {
    background: var(--ndy-paper);
    padding: clamp(44px, 6vw, 80px) 0;
}

/* 面包屑（hero 内，浅色） */
.nh-crumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 13px; margin-bottom: 18px; letter-spacing: .04em;
}
.nh-crumb a { color: rgba(246,239,227,.7); text-decoration: none; transition: color .3s; }
.nh-crumb a:hover { color: var(--ndy-gold); }
.nh-crumb .sep { color: rgba(246,239,227,.35); }
.nh-crumb .cur { color: #f6efe3; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* hero 内元信息 */
.nh-article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    margin-top: 18px; color: rgba(246,239,227,.78);
    font-size: 13px; letter-spacing: .06em;
}
.nh-article-meta span { display: inline-flex; align-items: center; gap: 5px; }
.nh-article-meta .dot { color: rgba(246,239,227,.35); }
.nh-article-meta .fa { color: var(--ndy-gold); font-size: 12px; }
.nh-article-meta .nh-views { white-space: nowrap; }
.nh-article-meta .nh-views-num { font-variant-numeric: tabular-nums; color: #f6efe3; }
.nh-article-h1 { font-size: clamp(24px, 3.4vw, 38px); line-height: 1.35; }

/* 正文白卡片 */
.nh-article {
    background: #fff;
    border: 1px solid var(--ndy-line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(43,39,36,.06);
}
/* 特色图 */
.nh-article-hero { margin: 0; background: #efe9df; }
.nh-article-hero img { width: 100%; height: auto; display: block; max-height: 480px; object-fit: cover; }

/* 正文排版（SEO 最佳实践：17px 正文 / 1.9 行高 / 系统中文字体栈 / H1>H2>H3>H4 逐级递减） */
.nh-article-body {
    padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 52px);
    font-family: var(--ndy-sans);
    font-size: 18px; line-height: 1.9; color: var(--ndy-ink);
    word-break: break-word; overflow-wrap: break-word;
}
.nh-article-body > *:first-child { margin-top: 0; }
/* comm.css 全局重置把 p/li/dd 等直接压成 12px（元素选择器优先于继承），此处显式恢复继承 */
.nh-article-body p,
.nh-article-body li,
.nh-article-body dd,
.nh-article-body dt,
.nh-article-body blockquote,
.nh-article-body span {
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}
.nh-article-body p { margin: 0 0 1.4em; text-align: justify; }
.nh-article-body img { max-width: 100%; height: auto; border-radius: 4px; margin: 1.6em auto; display: block; }
.nh-article-body h2 {
    font-family: var(--ndy-serif); font-size: 24px; font-weight: 700; line-height: 1.5;
    color: var(--ndy-ink); margin: 1.8em 0 .7em; padding-bottom: 10px;
    border-bottom: 2px solid var(--ndy-gold); display: inline-block;
}
.nh-article-body h3 { font-family: var(--ndy-serif); font-size: 20px; font-weight: 600; line-height: 1.55; margin: 1.5em 0 .6em; }
.nh-article-body h4 { font-family: var(--ndy-serif); font-size: 18px; font-weight: 600; line-height: 1.6; margin: 1.4em 0 .5em; }
.nh-article-body blockquote {
    margin: 1.5em 0; padding: 16px 22px; background: var(--ndy-paper2);
    border-left: 4px solid var(--ndy-gold); border-radius: 0 6px 6px 0;
    color: var(--ndy-ink-soft); font-style: italic;
}
.nh-article-body a { color: var(--ndy-gold); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nh-article-body a:hover { border-bottom-color: var(--ndy-gold); }
.nh-article-body ul, .nh-article-body ol { padding-left: 1.6em; margin: 0 0 1.2em; }
.nh-article-body li { margin-bottom: .5em; }
.nh-article-body strong { color: var(--ndy-ink); }

/* 标签 */
.nh-article-tags {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    padding: 0 clamp(24px, 4vw, 52px) 28px;
    border-bottom: 1px solid var(--ndy-line);
}
.nh-tags-label { font-size: 13px; color: var(--ndy-muted); font-weight: 600; }
.nh-tag {
    display: inline-block; padding: 5px 14px; font-size: 13px;
    color: var(--ndy-ink-soft); background: var(--ndy-paper2);
    border: 1px solid var(--ndy-line); border-radius: 20px;
    text-decoration: none; transition: all .25s ease;
}
.nh-tag:hover { color: var(--ndy-gold); border-color: var(--ndy-gold); background: rgba(176,141,87,.06); }

/* 分享 */
.nh-article-share {
    display: flex; align-items: center; gap: 12px;
    padding: 22px clamp(24px, 4vw, 52px);
    border-bottom: 1px solid var(--ndy-line);
}
.nh-share-label { font-size: 13px; color: var(--ndy-muted); font-weight: 600; }
.nh-share-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ndy-line);
    background: #fff; color: var(--ndy-ink-soft); cursor: pointer; font-size: 14px;
    transition: all .25s ease;
}
.nh-share-btn:hover { background: var(--ndy-gold); border-color: var(--ndy-gold); color: #fff; transform: translateY(-2px); }

/* 作者卡片 */
.nh-author {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 26px clamp(24px, 4vw, 52px);
    background: linear-gradient(135deg, var(--ndy-paper2), #fff);
}
.nh-author-avatar {
    width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
    background: var(--ndy-gold); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; font-weight: 700; font-family: var(--ndy-serif);
}
.nh-author-info { flex: 1; min-width: 0; }
.nh-author-name { font-size: 16px; font-weight: 700; color: var(--ndy-ink); margin-bottom: 4px; }
.nh-author-desc { font-size: 13px; color: var(--ndy-ink-soft); line-height: 1.7; }

/* 相关阅读 */
.nh-related { margin-top: 48px; }
.nh-related-title {
    font-family: var(--ndy-serif); font-size: 21px; font-weight: 700;
    color: var(--ndy-ink); margin: 0 0 20px; padding-left: 14px;
    border-left: 4px solid var(--ndy-gold);
}
.nh-rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.nh-rel-card {
    display: flex; flex-direction: column; text-decoration: none;
    background: #fff; border: 1px solid var(--ndy-line); border-radius: 4px;
    overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.nh-rel-card:hover { transform: translateY(-5px); box-shadow: 0 14px 36px rgba(43,39,36,.1); }
.nh-rel-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ndy-paper2); }
.nh-rel-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nh-rel-card:hover .nh-rel-thumb img { transform: scale(1.06); }
.nh-rel-info { padding: 14px 16px 18px; }
.nh-rel-info h4 {
    font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--ndy-ink);
    margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nh-rel-info time { font-size: 12px; color: var(--ndy-muted); font-family: Georgia, serif; letter-spacing: .04em; }

/* 上下篇 */
.nh-nav-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.nh-nav-card {
    display: flex; flex-direction: column; gap: 8px;
    padding: 18px 22px; text-decoration: none;
    border: 1px solid var(--ndy-line); border-radius: 4px;
    background: #fff; transition: all .3s ease;
}
.nh-nav-card:not(.is-empty):hover { border-color: var(--ndy-gold); box-shadow: 0 8px 24px rgba(43,39,36,.08); }
.nh-nav-card.next { text-align: right; }
.nh-nav-card.is-empty { opacity: .45; }
.nh-nav-label { font-size: 12px; color: var(--ndy-muted); font-weight: 600; letter-spacing: .04em; }
.nh-nav-title {
    font-size: 14px; color: var(--ndy-ink); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* 响应式：左右分栏在窄屏堆叠 */
@media (max-width: 900px) {
    .nh-layout { flex-direction: column; }
    .nh-aside { width: 100%; order: 2; }
    .nh-main { order: 1; }
    .nh-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .nh-article-body { font-size: 17px; line-height: 1.9; padding: 24px 20px; }
    .nh-article-body h2 { font-size: 21px; }
    .nh-article-body h3 { font-size: 18px; }
    .nh-article-body h4 { font-size: 17px; }
    .nh-rel-grid { grid-template-columns: 1fr; }
    .nh-nav-cards { grid-template-columns: 1fr; }
    .nh-nav-card.next { text-align: left; }
    .nh-author { flex-direction: column; align-items: center; text-align: center; }
}

/* =========================================================
   产品详情页（single-product.php）— .ndy-pd-* 命名空间
   ========================================================= */

/* 面包屑 */
.ndy-crumb { background: var(--ndy-paper); border-bottom: 1px solid var(--ndy-line); font-size: 13px; }
.ndy-crumb-inner { padding: 16px 24px; color: var(--ndy-ink-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ndy-crumb-inner a { color: var(--ndy-ink-soft); text-decoration: none; transition: color .25s; }
.ndy-crumb-inner a:hover { color: var(--ndy-gold); }
.ndy-crumb-sep { color: #c9bfae; }
.ndy-crumb-cur { color: var(--ndy-ink); font-weight: 600; }

/* 主区两栏 */
.ndy-pd { background: #fff; padding: clamp(36px, 5vw, 64px) 0; }
.ndy-pd-grid { display: flex; align-items: flex-start; gap: clamp(28px, 4vw, 56px); }

/* 左：画廊 */
.ndy-pd-gallery { flex: 0 0 48%; width: 48%; min-width: 0; }
.ndy-pd-stage {
    position: relative; background: var(--ndy-paper2); border-radius: 6px; overflow: hidden;
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    cursor: zoom-in; border: 1px solid var(--ndy-line);
}
.ndy-pd-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ndy-pd-zoomhint {
    position: absolute; right: 12px; bottom: 12px;
    background: rgba(43,39,36,.62); color: #f6efe3;
    font-size: 12px; letter-spacing: .08em;
    padding: 5px 12px; border-radius: 999px;
    opacity: 0; transform: translateY(6px); transition: all .3s ease; pointer-events: none;
}
.ndy-pd-stage:hover .ndy-pd-zoomhint { opacity: 1; transform: translateY(0); }
.ndy-pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.ndy-pd-thumb {
    width: 84px; height: 84px; padding: 0; border: 1px solid var(--ndy-line);
    background: var(--ndy-paper2); border-radius: 5px; overflow: hidden;
    cursor: pointer; transition: all .25s ease; opacity: .7;
}
.ndy-pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ndy-pd-thumb:hover { opacity: 1; }
.ndy-pd-thumb.is-active { opacity: 1; border-color: var(--ndy-gold); box-shadow: 0 0 0 2px rgba(176,141,87,.25); }

/* 右：信息 */
.ndy-pd-info { flex: 1; min-width: 0; padding-top: 6px; }
.ndy-pd-badge {
    display: inline-block; font-size: 12px; letter-spacing: .14em;
    color: #fff; background: var(--ndy-gold);
    padding: 4px 14px; border-radius: 999px; margin-bottom: 16px;
}
.ndy-pd-cat { display: block; color: var(--ndy-gold); font-size: 13px; letter-spacing: .2em; margin-bottom: 8px; }
.ndy-pd-title {
    font-family: var(--ndy-serif); font-size: clamp(26px, 3.2vw, 38px);
    line-height: 1.35; color: var(--ndy-ink); margin: 0; font-weight: 600;
}
.ndy-pd-rule { display: block; width: 48px; height: 2px; background: var(--ndy-gold); margin: 20px 0; }
.ndy-pd-meta { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--ndy-line); }
.ndy-pd-meta li {
    display: flex; align-items: center; gap: 18px;
    padding: 13px 2px; border-bottom: 1px solid var(--ndy-line); font-size: 15px;
}
.ndy-pd-meta li span { color: var(--ndy-ink-soft); letter-spacing: .1em; flex: 0 0 56px; }
.ndy-pd-meta li b { color: var(--ndy-ink); font-weight: 500; }
.ndy-pd-note { color: var(--ndy-ink-soft); font-size: 14px; line-height: 1.95; margin: 0 0 28px; }
.ndy-pd-btn {
    display: inline-block; padding: 14px 44px; border: none; cursor: pointer;
    background: var(--ndy-ink); color: #f6efe3;
    font-size: 15px; letter-spacing: .14em; border-radius: 999px; transition: all .3s ease;
}
.ndy-pd-btn:hover { background: var(--ndy-gold); }

/* 产品详情 / 图集 */
.ndy-pd-detail { background: var(--ndy-paper); padding: clamp(48px, 7vw, 84px) 0; }
.ndy-rule-center { margin: 16px auto 0; }
.ndy-pd-prose { max-width: 820px; margin: 0 auto; color: var(--ndy-ink); line-height: 2; font-size: 16px; }
.ndy-pd-prose img { max-width: 100%; height: auto; border-radius: 6px; margin: 18px 0; }
.ndy-pd-prose p { margin: 0 0 1.4em; }
.ndy-pd-album { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 960px; margin: 0 auto; }
.ndy-pd-album-item {
    margin: 0; background: #fff; border-radius: 6px; overflow: hidden;
    border: 1px solid var(--ndy-line); cursor: zoom-in;
}
.ndy-pd-album-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ndy-pd-album-item:hover img { transform: scale(1.04); }

/* 相关推荐 / 热销榜 */
.ndy-pd-rec { background: #fff; padding: clamp(40px, 6vw, 72px) 0; }
.ndy-pd-rec-alt { background: var(--ndy-paper); }
.ndy-rec-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); }
.ndy-rec-media {
    display: block; aspect-ratio: 1 / 1; overflow: hidden;
    background: var(--ndy-paper2); border-radius: 6px; border: 1px solid var(--ndy-line);
}
.ndy-rec-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ndy-rec-card:hover .ndy-rec-media img { transform: scale(1.07); }
.ndy-rec-body { padding: 14px 2px 0; }
.ndy-rec-name { font-family: var(--ndy-serif); font-size: 17px; line-height: 1.5; margin: 0; font-weight: 500; }
.ndy-rec-name a { color: var(--ndy-ink); text-decoration: none; transition: color .25s; }
.ndy-rec-name a:hover { color: var(--ndy-gold); }

/* 意向单弹窗 */
.ndy-pd-modal { position: fixed; inset: 0; z-index: 999999; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; }
.ndy-pd-modal-box {
    background: #fff; border-radius: 10px; width: 90%; max-width: 460px;
    padding: 34px 30px 26px; position: relative; box-shadow: 0 18px 50px rgba(0,0,0,.32); animation: ndyPdPop .3s ease;
}
@keyframes ndyPdPop { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.ndy-pd-modal-close { position: absolute; top: 10px; right: 16px; font-size: 26px; color: #999; cursor: pointer; line-height: 1; }
.ndy-pd-modal-close:hover { color: var(--ndy-ink); }
.ndy-pd-modal-title { margin: 0 0 22px; font-size: 19px; color: var(--ndy-ink); text-align: center; font-family: var(--ndy-serif); }
.ndy-pd-field { margin-bottom: 16px; }
.ndy-pd-field label { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ndy-ink-soft); }
.ndy-pd-field .req { color: #c0392b; }
.ndy-pd-field input, .ndy-pd-field textarea {
    width: 100%; border: 1px solid var(--ndy-line); border-radius: 5px;
    padding: 10px 12px; font-size: 14px; box-sizing: border-box; font-family: inherit;
    color: var(--ndy-ink); transition: border-color .25s;
}
.ndy-pd-field input:focus, .ndy-pd-field textarea:focus { outline: none; border-color: var(--ndy-gold); }
.ndy-pd-modal-submit {
    width: 100%; height: 44px; font-size: 16px; cursor: pointer; border: none;
    background: var(--ndy-ink); color: #f6efe3; border-radius: 6px; letter-spacing: .1em; transition: background .3s ease; margin-top: 4px;
}
.ndy-pd-modal-submit:hover { background: var(--ndy-gold); }

/* 响应式 */
@media (max-width: 900px) {
    .ndy-pd-grid { flex-direction: column; }
    .ndy-pd-gallery { flex: none; width: 100%; }
    .ndy-rec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ndy-pd-album { grid-template-columns: 1fr; }
    .ndy-rec-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ndy-pd-thumb { width: 68px; height: 68px; }
}

/* =========================================================
   404 页面 — 与首页 / 内页统一博物馆风
   ========================================================= */
.ndy-404-hero {
    position: relative;
    min-height: clamp(260px, 34vw, 380px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #16110c;
}
.ndy-404-hero-bg {
    position: absolute;
    inset: 0;
    background: url('assets/picture/nh-inner-banner.jpg') center / cover no-repeat;
    transform: scale(1.04);
}
.ndy-404-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(18,13,9,.52) 0%, rgba(18,13,9,.70) 100%);
}
.ndy-404-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 0;
    color: #f6efe3;
}
.ndy-404-kicker {
    display: block;
    letter-spacing: .42em;
    font-size: 13px;
    color: var(--ndy-gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.ndy-404-title {
    font-family: var(--ndy-serif);
    font-size: clamp(80px, 16vw, 160px);
    font-weight: 600;
    line-height: 1;
    margin: 0;
    letter-spacing: .06em;
    color: #f6efe3;
    text-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.ndy-404-hero .ndy-rule {
    display: block;
    width: 64px;
    height: 2px;
    background: var(--ndy-gold);
    margin: 18px auto;
}
.ndy-404-lead {
    font-family: var(--ndy-serif);
    font-size: clamp(18px, 2.6vw, 26px);
    letter-spacing: .18em;
    color: rgba(246,239,227,.92);
    margin: 0;
}

.ndy-404-wrap {
    background: var(--ndy-paper);
    padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 9vw, 110px);
}
.ndy-404-body {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}
.ndy-404-message {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 40px;
    color: var(--ndy-ink-soft);
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 2;
}
.ndy-404-message p { margin: 0 0 .6em; }

.ndy-404-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: clamp(56px, 7vw, 86px);
}
.ndy-404-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 34px;
    border-radius: 999px;
    font-size: 15px;
    letter-spacing: .1em;
    text-decoration: none;
    transition: all .3s ease;
}
.ndy-404-btn-primary {
    background: var(--ndy-ink);
    color: #f6efe3;
    border: 1px solid var(--ndy-ink);
}
.ndy-404-btn-primary:hover {
    background: var(--ndy-gold);
    border-color: var(--ndy-gold);
    color: #fff;
}

.ndy-404-search {
    display: flex;
    align-items: stretch;
    max-width: 420px;
    width: 100%;
    border: 1px solid var(--ndy-line);
    border-radius: 999px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 14px rgba(43,39,36,.06);
}
.ndy-404-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 12px 18px 12px 22px;
    font-size: 15px;
    color: var(--ndy-ink);
    background: transparent;
    outline: none;
    font-family: var(--ndy-sans);
}
.ndy-404-search input[type="search"]::placeholder { color: #a89c8a; }
.ndy-404-search button {
    border: none;
    background: var(--ndy-ink);
    color: #f6efe3;
    padding: 0 24px;
    font-size: 15px;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background .3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ndy-404-search button:hover { background: var(--ndy-gold); }

.ndy-404-suggestions .ndy-sec-head {
    padding: 0 0 clamp(28px, 4vw, 42px);
}
.ndy-404-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}
.ndy-404-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--ndy-line);
    box-shadow: 0 6px 18px rgba(43,39,36,.06);
    transition: transform .35s ease, box-shadow .35s ease;
}
.ndy-404-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 36px rgba(43,39,36,.12);
}
.ndy-404-card-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--ndy-paper2);
}
.ndy-404-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.ndy-404-card:hover .ndy-404-card-media img { transform: scale(1.06); }
.ndy-404-card-info {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ndy-404-card-date {
    font-size: 12px;
    color: var(--ndy-gold);
    letter-spacing: .1em;
    margin-bottom: 8px;
}
.ndy-404-card-title {
    font-family: var(--ndy-serif);
    font-size: 17px;
    line-height: 1.5;
    color: var(--ndy-ink);
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.ndy-404-card-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--ndy-gold);
    letter-spacing: .08em;
    transition: gap .3s ease;
}
.ndy-404-card:hover .ndy-404-card-more { gap: 8px; }
.ndy-404-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--ndy-muted);
    padding: 40px 0;
}

/* 404 辅助 — 隐藏 WordPress 默认搜索框标签，保留屏幕阅读器 */
.ndy-404-search .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 980px) {
    .ndy-404-posts { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
    .ndy-404-hero { min-height: 220px; }
    .ndy-404-hero-content { padding: 28px 0; }
    .ndy-404-body { padding: 0 18px; }
    .ndy-404-actions { flex-direction: column; align-items: stretch; }
    .ndy-404-btn { justify-content: center; }
    .ndy-404-search { max-width: none; }
    .ndy-404-search button span { display: none; }
    .ndy-404-posts { grid-template-columns: 1fr; }
    .ndy-404-card-media { aspect-ratio: 16 / 9; }
}
