

/* =========================================================
   产品详情页基础样式（作为基础布局写在断点前）
   ========================================================= */

.NyPro_right_detail {
    width: 75%;
    min-height: 600px;
}

/* ------ 区块 1：大图 + 信息 ------ */
.pd-main {
    display: flex;
    padding: 10px 0 30px;
    border-bottom: 1px dashed #ddd;
    margin-bottom: 30px;
}
.pd-main .pd-img {
    flex: 0 0 420px;
    width: 420px;
}
.pd-main .pd-img-big {
    border: 1px solid #eee;
    padding: 10px;
    text-align: center;
    background: #fff;
}
.pd-main .pd-img-big img {
    width: 100%;
    height: auto;
    display: block;
}
.pd-main .pd-info {
    flex: 1;
    min-width: 0;
    padding-top: 10px;
    margin-left:30px;
}
.pd-main .pd-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0 0 16px;
}
.pd-main .pd-meta {
    list-style: none;
    padding: 12px 0;
    margin: 0 0 20px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}
.pd-main .pd-meta li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
}
.pd-main .pd-meta li span {
    color: #791015;
    font-weight: bold;
}
.pd-main .pd-action { padding-top: 10px; }
.pd-main .pd-inquiry {
    display: inline-block;
    padding: 12px 28px;
    background: #791015;
    color: #fff !important;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-right: 20px;
    transition: background .2s;
}
.pd-main .pd-inquiry:hover { background: #a02025; }
.pd-main .pd-tel {
    font-size: 14px;
    color: #555;
}
.pd-main .pd-tel b {
    color: #791015;
    font-size: 16px;
    margin-left: 4px;
}

/* ------ 区块 2：产品概述 ------ */
.pd-tabs { margin-bottom: 30px; }
.pd-tab-nav {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border-bottom: 2px solid #eee;
}
.pd-tab-nav li {
    display: inline-block;
    padding: 10px 24px;
    font-size: 16px;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .2s, border-color .2s;
}
.pd-tab-nav li.on,
.pd-tab-nav li:hover {
    color: #791015;
    border-bottom-color: #791015;
}
.pd-tab-con {
    font-size: 15px;
    line-height: 1.9;
    color: #444;
    word-break: break-all;
}
.pd-tab-con img {
    max-width: 100%;
    height: auto;
    margin: auto;
}

/* ------ 缩略图列表（slick，放在主图下方） ------ */
.pd-thumbs {
    margin-top: 14px;
    position: relative;
}
.pd-thumbs .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: rgba(255,255,255,.9);
    color: #791015;
    font-size: 14px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
    transition: all .2s;
}
.pd-thumbs .slick-arrow:hover {
    background: #791015;
    color: #fff;
    border-color: #791015;
}
.pd-thumbs .slick-prev { left: -12px; }
.pd-thumbs .slick-next { right: -12px; }
/* 干掉 slick 默认的 Previous/Next 文字 */
.pd-thumbs .slick-arrow { font-size: 0; line-height: 1; }
.pd-thumbs .slick-arrow span {
    font-size: 18px;
    font-weight: bold;
    line-height: 28px;
    color: inherit;
    font-family: Arial, sans-serif;
}
.pd-thumbs .slick-prev::before,
.pd-thumbs .slick-next::before {
    display: none;   /* 隐藏 slick 原生伪元素 */
}

.pd-thumb-item {
    padding: 0 4px;
    cursor: pointer;
    box-sizing: border-box;
}
.pd-thumb-item img {
    width: 100%;
    height: 68px;
    object-fit: cover;
    border: 2px solid #eee;
    border-radius: 4px;
    transition: border-color .2s, transform .2s;
}
.pd-thumb-item:hover img { border-color: #c04040; }
.pd-thumb-item.active img {
    border-color: #791015;
    box-shadow: 0 0 0 2px rgba(121,16,21,.15);
}

/* ------ 产品概述 tab ------ */
.pd-tags {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.pd-tags .tags-title {
    font-size: 14px;
    color: #888;
    flex-shrink: 0;
    padding-top: 2px;
}
.pd-tags .tags-content {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
.pd-tags .tags-content a {
    font-size: 13px;
    color: #791015;
    padding: 2px 10px;
    background: #f9f0f0;
    border-radius: 12px;
    text-decoration: none;
}

/* ------ 区块 5：上下篇 ------ */
.pd-pn {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}
.pd-pn b { color: #333; }
.pd-pn > div { flex: 1; min-width: 240px; }
.pd-pn a { color: #791015; text-decoration: none; }

/* ------ 区块 6：相关产品 ------ */
.pd-relate { margin-bottom: 30px; }
.pd-relate .relate-title {
    font-size: 18px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin: 0 0 20px;
}
.pd-relate .relate-title span {
    position: relative;
    padding-left: 14px;
}
.pd-relate .relate-title span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 3px;
    background: #791015;
}
/* ------ 区块 6：相关产品（复用 list_page1 推荐美味卡片，覆盖尺寸） ------ */
.pd-relate .relate-prod.NyPro_list ul li {
    width: 23%;        /* 四列：(100% - 3*2%)/4 ≈ 23% */
    margin: 0 2% 18px 0;
    padding: 8px;
    box-sizing: border-box;
}
.pd-relate .relate-prod.NyPro_list ul li:nth-child(3n+3) {
    margin-right: 2%;  /* 覆盖 main.css 的三列边距 */
}
.pd-relate .relate-prod.NyPro_list ul li:nth-child(4n+4) {
    margin-right: 0;
}
.pd-relate .relate-prod.NyPro_list ul li .IdxPro_img {
    height: 160px;     /* 缩小图片区高度 */
    margin-bottom: 8px;
}
.pd-relate .relate-prod.NyPro_list ul li .idxPro_btn {
    top: 160px;        /* 跟着 IdxPro_img 高度走 */
}
.pd-relate .relate-prod.NyPro_list ul li .IdxPro_name a {
    height: 40px;
    line-height: 40px;
    font-size: 14px;   /* 字号缩小 */
}


/* =========================================================
   断点 3：过渡 ≤1200
   ========================================================= */
@media (max-width: 1200px) {
    /* 详情页：图片区域缩小 */
    .pd-main .pd-img,
    .pd-main .pd-img-big img { flex-basis: 340px; width: 340px; }
}


/* =========================================================
   断点 4：平板横屏 ≤1024 — 继续收缩
   ========================================================= */
@media (max-width: 1024px) {


    /* 详情页：整体缩小 */
    .pd-main { gap: 20px; }
    .pd-main .pd-img,
    .pd-main .pd-img-big img { flex-basis: 300px; width: 300px; }
    .pd-main .pd-title { font-size: 20px; }
}


/* =========================================================
   断点 5：平板竖屏 ≤768 — 布局开始堆叠
   ========================================================= */
@media (max-width: 768px) {


    /* ============ 产品页左右 → 上下 ============ */
    .NyPro_main .NyPro_left,
    .NyPro_main .NyPro_right { float: none; width: 100%; }
    .NyPro_main .NyPro_left { margin-bottom: 20px; }

    /* ============ 详情页主区块竖排 ============ */
    .pd-main { flex-direction: column; gap: 20px; }
    .pd-main .pd-img,
    .pd-main .pd-img-big img { flex: none; width: 100%; max-width: 420px; margin: 0 auto; }
    .pd-main .pd-title { font-size: 20px; text-align: center; }
    .pd-main .pd-meta { text-align: center; }
    .pd-main .pd-action { text-align: center; }

    .pd-tab-nav li { padding: 8px 16px; font-size: 14px; }
    .pd-thumb-item img { height: 58px; }

    /* 相关产品：768px 下改两列 */
    .pd-relate .relate-prod.NyPro_list ul li { width: 48%; margin-right: 4%; }
    .pd-relate .relate-prod.NyPro_list ul li:nth-child(2n+2) { margin-right: 0; }
    .pd-relate .relate-prod.NyPro_list ul li:nth-child(3n+3) { margin-right: 4%; }

    .pd-tags { flex-direction: column; gap: 8px; }

    .pd-pn > div { min-width: 100%; }

    /* ============ ny_banner ============ */
    .ny_banner { height: 180px !important; }
    .ny_banner img { height: auto !important; position: static; }

    .crumb { padding: 12px 15px; font-size: 12px; overflow-x: auto; white-space: nowrap; }

    /* ============ 企业文化 / 荣誉 → 2 列 ============ */
    .Qywh_list ul li,
    .NyHonor_list ul li { float: left; width: 48%; margin-right: 4%; box-sizing: border-box; }
    .NyHonor_list ul li:nth-child(2n) { margin-right: 0; }

    .search { padding: 10px 15px; }
    .search .box form { display: flex; gap: 8px; }
    .search .box form input[type="text"] { flex: 1; min-width: 0; }

    .pagebar { padding: 20px 15px; text-align: center; overflow-x: auto; }
    .pagebar .pagination { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; }

    .NyNewsdetail,
    .NyProducts_detail { padding: 0 15px; box-sizing: border-box; }
}


/* =========================================================
   断点 6：小屏手机 ≤480 — 更紧凑
   ========================================================= */
@media (max-width: 480px) {


    .pd-main .pd-title { font-size: 18px; }
    .pd-main .pd-inquiry { padding: 10px 20px; font-size: 14px; margin-right: 10px; }

    .pd-tab-nav li { padding: 6px 12px; font-size: 13px; }
    .pd-tab-con { font-size: 14px; line-height: 1.8; }
    .pd-thumb-item img { height: 50px; }

    /* 相关产品：480px 下单列 */
    .pd-relate .relate-prod.NyPro_list ul li { width: 100%; margin-right: 0; }
    .pd-relate .relate-prod.NyPro_list ul li:nth-child(3n+3) { margin-right: 0; }
    .pd-thumbs .slick-prev { left: -6px; }
    .pd-thumbs .slick-next { right: -6px; }
    .pd-thumbs .slick-arrow { width: 24px; height: 24px; font-size: 12px; line-height: 22px; }

    .Qywh_list ul li,
    .NyHonor_list ul li { float: none; width: 100%; margin: 0 0 16px; }
}

/* ============================================================
   PC 端品牌故事时间线（list_page2.html）
   居中竖线 + 左右交错卡片，适配 w1200 容器
   ============================================================ */

/* lead 引言段 */
.story-lead {
    font-size: 18px;
    color: #524a3d;
    line-height: 2;
    text-align: center;
    margin: 10px auto 50px;
    max-width: 860px;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    position: relative;
    padding: 0 30px;
}
/* lead 前后装饰竖线 */
.story-lead::before,
.story-lead::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #b08d48;
}
.story-lead::before { left: -10px; }
.story-lead::after  { right: -10px; }

/* 时间线容器：居中定位竖线 */
.story-timeline {
    position: relative;
    padding: 20px 0 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}
/* 居中竖线 */
.story-timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #b08d48 8%, #b08d48 92%, transparent);
    transform: translateX(-50%);
}

/* 每个时间节点 */
.story-tl-item {
    position: relative;
    margin-bottom: 48px;
    width: 100%;
    display: flex;
    align-items: flex-start;
}
.story-tl-item:last-child { margin-bottom: 0; }

/* 圆点：跨在竖线上 */
.story-tl-dot {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #791015;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #d8c08a;
    transform: translateX(-50%);
    z-index: 2;
}

/* 年份：始终显示在竖线左侧 */
.story-tl-year {
    width: 50%;
    padding-right: 50px;
    text-align: right;
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 42px;
    font-weight: 900;
    color: #791015;
    line-height: 1;
    letter-spacing: 1px;
    position: relative;
}
/* 年份和卡片间的小连接线 */
.story-tl-year::after {
    content: "";
    position: absolute;
    right: 0;
    top: 14px;
    width: 50px;
    height: 2px;
    background: #b08d48;
}

/* 右侧卡片 */
.story-tl-card {
    width: 50%;
    padding-left: 50px;
}
.story-tl-card h3 {
    font-family: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
    font-size: 22px;
    color: #540c10;
    margin: 0 0 10px;
    font-weight: 700;
}
.story-tl-card p {
    font-size: 15px;
    color: #524a3d;
    line-height: 2;
    margin: 0;
    text-align: justify;
}

/* 末尾结语 */
.story-end {
    text-align: center;
    font-size: 16px;
    color: #837661;
    line-height: 2;
    margin: 50px auto 30px;
    padding: 20px;
    border-top: 1px dashed #d8c08a;
    max-width: 600px;
}

/* ---------- 断点覆盖 ---------- */

/* ≤1024px：年份缩小 */
@media (max-width: 1024px) {
    .story-lead { font-size: 16px; margin-bottom: 36px; }
    .story-tl-year { font-size: 34px; padding-right: 40px; }
    .story-tl-card h3 { font-size: 19px; }
    .story-tl-card p  { font-size: 14px; line-height: 1.9; }
}

/* ≤768px：单列布局，竖线移到左侧 */
@media (max-width: 768px) {
    .story-lead { font-size: 15px; padding: 0 10px; margin-bottom: 30px; }
    .story-lead::before, .story-lead::after { display: none; }

    .story-timeline::before { left: 20px; transform: none; }
    .story-tl-item { flex-direction: column; padding-left: 50px; }

    .story-tl-dot { left: 20px; }

    .story-tl-year {
        width: auto;
        text-align: left;
        padding: 0;
        font-size: 28px;
        margin-bottom: 6px;
    }
    .story-tl-year::after { display: none; }

    .story-tl-card { width: auto; padding: 0; }
    .story-tl-card h3 { font-size: 18px; }
    .story-tl-card p  { font-size: 14px; }

    .story-end { font-size: 14px; margin: 30px auto 20px; padding: 16px; }
}
