/* =============================================
   CMS 公共样式（产品 + 文章 全部共用）
   只在 my-cms 文件夹内生效，独立不影响主站
============================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    overflow-x: hidden;
}
body {
    font-family: "微软雅黑", sans-serif;
    background: #f8f9fa;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.page-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin: 30px 0;
    color: #222;
}

/* 头部 */
.site-header {
    width: 100%;
    background: #1a365d;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative;
    z-index: 999;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}
.header-logo h1 {
    font-size: 22px;
    font-weight: 700;
}
.header-nav {
    display: flex;
}
.header-nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 12px;
    font-size: 15px;
}
.header-nav a:hover {
    color: #f6ad55;
}

/* 汉堡按钮 */
.hamburger {
    display: none;
    width: 30px;
    height: 26px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}
.hamburger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1a365d;
    padding: 15px 20px;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}
.mobile-nav a {
    color: #fff;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 底部 */
.site-footer {
    width: 100%;
    background: #1a365d;
    color: #ccc;
    margin-top: 40px;
    padding: 25px 0;
    text-align: center;
    font-size: 14px;
}

/* 图片统一适配（解决首图大小不一、拉伸） */
img {
    max-width: 100% !important;
    height: auto !important;
}

/* 文字强制换行（解决老文章溢出不换行） */
.product-desc,
.article-desc,
.content {
    word-wrap: break-word !important;
    word-break: break-all !important;
    white-space: normal !important;
}

/* ==================== 移动端适配 ==================== */
@media (max-width: 768px) {
    .header-nav { display: none; }
    .hamburger { display: flex; }
    .page-title { font-size: 26px; }
}
/* ==================================
强制手机端隐藏 上一个/下一篇 导航
================================== */
/* 【强制永久隐藏】手机端上下篇导航 最高优先级 */
@media (max-width: 768px) {
  /* 商品详情 */
  .pro-page-nav {
    all: unset !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* 文章详情 */
  .page-nav {
    all: unset !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
}