/* ============================================================
   铭喜老站现代 UI 统一层  mx-ui.css  (2026-10-23)
   品牌红 #c9151e | 供 落地页 / 财务问答 / 知识库 / 关于我们 复用
   语义化 HTML5 + 卡片网格 + 面包屑 + 现代分页
   ============================================================ */

:root {
  --mx-red: #c9151e;
  --mx-red-dark: #a81117;
  --mx-red-light: #e02431;
  --mx-gold: #d4a017;
  --mx-bg: #f5f6f8;
  --mx-card: #ffffff;
  --mx-text: #1f2329;
  --mx-text-2: #5f6672;
  --mx-text-3: #8f959e;
  --mx-border: #eef0f2;
  --mx-radius: 8px;
  --mx-shadow: 0 2px 12px rgba(15, 24, 41, 0.06);
  --mx-shadow-hover: 0 8px 24px rgba(201, 21, 30, 0.12);
}

.mx-page {
  width: 1200px;
  margin: 0 auto;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--mx-text);
  box-sizing: border-box;
}
.mx-page *, .mx-page *:before, .mx-page *:after { box-sizing: border-box; }

/* ---------- 面包屑 ---------- */
.mx-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 2px;
  font-size: 13px;
  color: var(--mx-text-3);
}
.mx-breadcrumb a { color: var(--mx-text-2); text-decoration: none; }
.mx-breadcrumb a:hover { color: var(--mx-red); }
.mx-breadcrumb .mx-sep { margin: 0 8px; color: #c9cdd4; }
.mx-breadcrumb .mx-cur { color: var(--mx-text); }

/* ---------- 区块卡片 ---------- */
.mx-section {
  background: var(--mx-card);
  border-radius: var(--mx-radius);
  box-shadow: var(--mx-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
}
.mx-section-title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--mx-text);
  margin: 0 0 18px 0;
  padding-left: 12px;
  line-height: 1.4;
}
.mx-section-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mx-red-light), var(--mx-red));
}
.mx-section-title .mx-more {
  float: right;
  font-size: 13px;
  font-weight: 400;
  color: var(--mx-text-3);
  text-decoration: none;
}
.mx-section-title .mx-more:hover { color: var(--mx-red); }

/* ---------- 按钮 ---------- */
.mx-btn {
  display: inline-block;
  padding: 0 22px;
  height: 40px;
  line-height: 40px;
  font-size: 14px;
  border-radius: 20px;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
}
.mx-btn-red {
  background: linear-gradient(135deg, var(--mx-red-light), var(--mx-red));
  color: #fff;
}
.mx-btn-red:hover { background: linear-gradient(135deg, var(--mx-red), var(--mx-red-dark)); color: #fff; box-shadow: 0 6px 16px rgba(201,21,30,.28); }
.mx-btn-gold {
  background: linear-gradient(135deg, #f0c14b, var(--mx-gold));
  color: #5a3e00;
}
.mx-btn-gold:hover { color: #5a3e00; box-shadow: 0 6px 16px rgba(212,160,23,.3); }
.mx-btn-ghost {
  background: #fff;
  color: var(--mx-red);
  border-color: var(--mx-red);
}
.mx-btn-ghost:hover { background: #fff5f5; color: var(--mx-red-dark); }

/* ---------- 卡片网格（一行 3 卡片） ---------- */
.mx-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.mx-card {
  display: flex;
  flex-direction: column;
  background: var(--mx-card);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mx-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mx-shadow-hover);
  border-color: #f3cdd0;
  color: inherit;
}
.mx-card-img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: #f0f1f3;
}
.mx-card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.mx-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mx-text);
  margin: 0 0 8px 0;
}
.mx-card-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mx-text-2);
  margin: 0 0 12px 0;
  flex: 1;
}
.mx-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--mx-text-3);
}
.mx-card-link {
  font-size: 13px;
  color: var(--mx-red);
  font-weight: 600;
}

/* ---------- 标签 / 筛选 pill ---------- */
.mx-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-pill {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  border-radius: 16px;
  color: var(--mx-text-2);
  background: #f2f3f5;
  text-decoration: none;
  transition: all .2s ease;
}
.mx-pill:hover { color: var(--mx-red); background: #fdeaea; }
.mx-pill.focus {
  color: #fff;
  background: linear-gradient(135deg, var(--mx-red-light), var(--mx-red));
}

/* ---------- 文章列表（知识库） ---------- */
.mx-article-card {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--mx-border);
  text-decoration: none;
  color: inherit;
}
.mx-article-card:last-child { border-bottom: none; }
.mx-article-card:hover .mx-article-title { color: var(--mx-red); }
.mx-article-thumb {
  flex: 0 0 200px;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
  background: #f0f1f3;
}
.mx-article-body { flex: 1; min-width: 0; }
.mx-article-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--mx-text);
  margin: 0 0 8px 0;
  transition: color .2s ease;
}
.mx-article-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mx-text-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-article-date { font-size: 12px; color: var(--mx-text-3); margin-top: 8px; }

/* ---------- 侧栏 ---------- */
.mx-sidebar .mx-section { padding: 18px; }
.mx-rank-list { list-style: none; margin: 0; padding: 0; }
.mx-rank-list li {
  display: flex;
  align-items: center;
  padding: 9px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--mx-border);
}
.mx-rank-list li:last-child { border-bottom: none; }
.mx-rank-no {
  flex: 0 0 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  background: #f2f3f5;
  color: var(--mx-text-3);
  font-size: 12px;
  margin-right: 10px;
}
.mx-rank-no.hl { background: linear-gradient(135deg, var(--mx-red-light), var(--mx-red)); color: #fff; }
.mx-rank-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mx-text-2); }
.mx-rank-val { color: var(--mx-red); font-weight: 600; }

/* ---------- 分页 ---------- */
.mx-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.mx-pagination a, .mx-pagination span {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  padding: 0 8px;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  color: var(--mx-text-2);
  background: #fff;
  border: 1px solid var(--mx-border);
  text-decoration: none;
}
.mx-pagination a:hover { color: var(--mx-red); border-color: var(--mx-red); }
.mx-pagination .cur { color: #fff; background: var(--mx-red); border-color: var(--mx-red); }

/* ---------- hero ---------- */
.mx-hero {
  position: relative;
  border-radius: var(--mx-radius);
  background: linear-gradient(120deg, var(--mx-red-light) 0%, var(--mx-red) 55%, var(--mx-red-dark) 100%);
  color: #fff;
  padding: 34px 40px;
  margin-bottom: 20px;
  overflow: hidden;
}
.mx-hero h1 { margin: 0 0 10px 0; font-size: 28px; font-weight: 700; color: #fff; }
.mx-hero p { margin: 0; font-size: 14px; color: rgba(255,255,255,.9); line-height: 1.7; }

/* ---------- 布局辅助 ---------- */
.mx-layout { display: flex; gap: 20px; align-items: flex-start; }
.mx-main { flex: 1; min-width: 0; }
.mx-side { flex: 0 0 300px; }
.mx-clearfix:after { content: ""; display: block; clear: both; }

/* ---------- 服务分类落地页（product_index） ---------- */
.mx-product-page { padding: 12px 0 20px; }
.mx-category { display: none; }
.mx-category:first-child { display: block; }
.mx-cat-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--mx-text);
  margin: 4px 0 8px 0;
  letter-spacing: 1px;
}
.mx-cat-desc {
  font-size: 14px;
  color: var(--mx-text-2);
  margin: 0 0 18px 0;
}
.mx-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0 18px;
  border-bottom: 1px solid var(--mx-border);
  margin-bottom: 18px;
}
.mx-subnav .mx-pill {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 20px;
}
.mx-subnav .mx-pill.currclass {
  color: #fff;
  background: linear-gradient(135deg, var(--mx-red-light), var(--mx-red));
  box-shadow: 0 4px 12px rgba(201,21,30,.22);
}
.mx-subsec { display: none; }
.mx-subsec:first-of-type { display: block; }
.mx-sub-title {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  color: var(--mx-text);
  margin: 0 0 16px 0;
  padding-left: 12px;
}
.mx-sub-title:before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mx-red-light), var(--mx-red));
}
.mx-svc-card {
  display: flex;
  flex-direction: column;
  background: var(--mx-card);
  border: 1px solid var(--mx-border);
  border-radius: var(--mx-radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mx-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mx-shadow-hover);
  border-color: #f3cdd0;
}
.mx-svc-cover {
  display: block;
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: #f2f3f5;
  text-decoration: none;
}
.mx-svc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.mx-svc-card:hover .mx-svc-cover img { transform: scale(1.05); }
.mx-svc-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 16px;
  font-weight: 700;
  color: var(--mx-red);
  background: linear-gradient(135deg, #fdeaea, #f7d7d9);
}
.mx-svc-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.mx-svc-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
}
.mx-svc-title a { color: var(--mx-text); text-decoration: none; }
.mx-svc-title a:hover { color: var(--mx-red); }
.mx-svc-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mx-text-2);
  margin: 0 0 12px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mx-svc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.mx-svc-link { color: var(--mx-red); font-weight: 600; text-decoration: none; }
.mx-svc-link:hover { color: var(--mx-red-dark); }
.mx-svc-date { color: var(--mx-text-3); }
.mx-svc-foot .mx-svc-date:empty { display: none; }
.mx-product-page .mx-pagination .shouye,
.mx-product-page .mx-pagination .moye {
  min-width: 48px;
  cursor: pointer;
}
.mx-product-page .mx-pagination .hezi { display: flex; gap: 6px; }
.mx-product-page .mx-pagination .hezi span {
  display: inline-block;
  min-width: 34px;
  height: 34px;
  line-height: 34px;
  padding: 0 8px;
  text-align: center;
  border-radius: 6px;
  font-size: 13px;
  color: var(--mx-text-2);
  background: #fff;
  border: 1px solid var(--mx-border);
  cursor: pointer;
}
.mx-product-page .mx-pagination .hezi span:hover { color: var(--mx-red); border-color: var(--mx-red); }
.mx-product-page .mx-pagination .hezi span.cur {
  color: #fff;
  background: var(--mx-red);
  border-color: var(--mx-red);
}
