/* ==========================================================================
   CMS 列表页 / 详情页补充样式
   说明：主样式沿用原站 assets/cdn/cyfastener/style/global/style.css，
        这里只补 CMS 生成区块（分类导航、卡片、分页、面包屑、参数表）的样式，
        配色与原站主色（深蓝 #0b2c50 / 强调 #c8102e）保持一致。
   ========================================================================== */

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

/* 顶部标题区 ------------------------------------------------------------- */
.cms-main { display: block; }
.cms-hero { background: #0b2c50; color: #fff; padding: 56px 0 40px; }
.cms-hero .cms-h1 { font-size: 34px; line-height: 1.25; margin: 12px 0 10px; color: #fff; }
.cms-intro { max-width: 780px; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.8; }
.cms-intro p { margin: 0 0 8px; }

/* 面包屑 ----------------------------------------------------------------- */
.cms-crumb { font-size: 13px; color: rgba(255, 255, 255, .7); }
.cms-crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.cms-crumb a:hover { color: #fff; text-decoration: underline; }
.cms-crumb .sep { margin: 0 6px; opacity: .6; }
.cms-crumb .cur { color: #fff; }

/* 分类导航 --------------------------------------------------------------- */
.cms-catnav { background: #f4f6f9; border-bottom: 1px solid #e3e7ee; }
.cms-catnav .cms-wrap { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px; }
.cms-cat { display: inline-block; padding: 7px 16px; border: 1px solid #d7dde7; border-radius: 20px;
  background: #fff; color: #33415c; font-size: 14px; text-decoration: none; transition: .2s; }
.cms-cat:hover { border-color: #0b2c50; color: #0b2c50; }
.cms-cat.is-active { background: #0b2c50; border-color: #0b2c50; color: #fff; }

/* 卡片网格 --------------------------------------------------------------- */
.cms-body { padding: 40px 0 60px; background: #fff; }
.cms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1100px) { .cms-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .cms-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cms-grid { grid-template-columns: 1fr; } }

/* 产品卡 */
.cms-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e6eaf1;
  border-radius: 6px; overflow: hidden; text-decoration: none; color: inherit; transition: .25s; }
.cms-card:hover { border-color: #0b2c50; box-shadow: 0 8px 24px rgba(11, 44, 80, .12); transform: translateY(-3px); }
.cms-card-media { display: block; aspect-ratio: 1 / 1; background: #f6f8fb; overflow: hidden; }
.cms-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.cms-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.cms-card-model { font-size: 12px; color: #8792a8; letter-spacing: .04em; text-transform: uppercase; }
.cms-card-title { font-size: 15px; font-weight: 600; color: #16233a; line-height: 1.45; }
.cms-card-desc { font-size: 13px; color: #6b7791; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cms-card-more { margin-top: 6px; font-size: 13px; color: #c8102e; font-weight: 600; }

/* 新闻卡 */
.cms-news { display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff;
  border: 1px solid #e6eaf1; border-radius: 6px; text-decoration: none; color: inherit; transition: .25s; }
.cms-news:hover { border-color: #0b2c50; box-shadow: 0 8px 24px rgba(11, 44, 80, .1); }
.cms-news-date { font-size: 12px; color: #8792a8; }
.cms-news-title { font-size: 17px; font-weight: 600; color: #16233a; line-height: 1.45; }
.cms-news-summary { font-size: 13px; color: #6b7791; line-height: 1.7; }

/* 空态与分页 ------------------------------------------------------------- */
.cms-empty { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: #8792a8; }
.cms-pager-wrap { margin-top: 40px; text-align: center; }
.cms-pager { display: inline-flex; gap: 8px; }
.cms-page { min-width: 38px; height: 38px; line-height: 36px; padding: 0 12px; border: 1px solid #d7dde7;
  border-radius: 4px; background: #fff; color: #33415c; text-decoration: none; font-size: 14px; }
.cms-page:hover { border-color: #0b2c50; color: #0b2c50; }
.cms-page.is-active { background: #0b2c50; border-color: #0b2c50; color: #fff; }

/* 产品详情 --------------------------------------------------------------- */
.cms-detail { padding: 36px 0 64px; background: #fff; }
.cms-detail-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .cms-detail-top { grid-template-columns: 1fr; gap: 24px; } }
.cms-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cms-gallery-item { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #f6f8fb;
  border: 1px solid #e6eaf1; border-radius: 6px; padding: 10px; box-sizing: border-box; }
.cms-detail h1 { font-size: 30px; line-height: 1.3; color: #16233a; margin: 6px 0 8px; }
.cms-detail .cms-model { font-size: 13px; color: #8792a8; text-transform: uppercase; letter-spacing: .06em; }
.cms-detail .cms-summary { font-size: 15px; color: #55617a; line-height: 1.8; margin: 14px 0 22px; }
.cms-params { width: 100%; border-collapse: collapse; font-size: 14px; }
.cms-params th, .cms-params td { border-bottom: 1px solid #eef1f6; padding: 10px 12px; text-align: left; }
.cms-params th { width: 38%; color: #6b7791; font-weight: 500; background: #fafbfd; }
.cms-params td { color: #16233a; }

.cms-section { margin-top: 48px; }
.cms-section h2 { font-size: 22px; color: #16233a; margin: 0 0 16px; padding-left: 12px;
  border-left: 4px solid #c8102e; }
.cms-article { font-size: 15px; line-height: 1.9; color: #3c4761; }
.cms-article h2 { font-size: 20px; color: #16233a; margin: 26px 0 12px; }
.cms-article h3 { font-size: 17px; color: #16233a; margin: 20px 0 10px; }
.cms-article ul, .cms-article ol { padding-left: 22px; margin: 10px 0 16px; }
.cms-article li { margin: 6px 0; }
.cms-article blockquote { margin: 16px 0; padding: 12px 18px; background: #f6f8fb;
  border-left: 3px solid #0b2c50; color: #55617a; }
.cms-article figure { margin: 18px 0; }
.cms-article img { max-width: 100%; height: auto; border-radius: 6px; }

/* 询价 CTA --------------------------------------------------------------- */
.cms-cta { margin-top: 40px; padding: 26px 28px; background: #0b2c50; border-radius: 8px; color: #fff; }
.cms-cta p { margin: 0 0 14px; font-size: 15px; color: rgba(255, 255, 255, .86); }
.cms-btn { display: inline-block; padding: 12px 26px; background: #c8102e; color: #fff;
  border: 0; border-radius: 4px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.cms-btn:hover { background: #a30d25; color: #fff; }
