@charset "utf-8";

/* 文章详情页 */
.article-page {
  padding: 10px 0 50px;
}

.article-shell {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
  animation: artFade 0.55s ease both;
}

.article-hero {
  position: relative;
  padding: 42px 56px 28px;
  background:
    linear-gradient(180deg, #fff8f7 0%, #ffffff 70%);
  border-bottom: 1px solid #f0e4e3;
}

.article-hero::before {
  content: "";
  position: absolute;
  left: 56px;
  top: 0;
  width: 48px;
  height: 3px;
  background: #cb0401;
}

.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #cb0401;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}

.article-kicker::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: #cb0401;
  opacity: 0.55;
}

.article-title {
  margin: 0;
  padding: 0;
  color: #1a1a1a;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed #eadfde;
  color: #888;
  font-size: 13px;
  letter-spacing: 0.03em;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cb0401;
  opacity: 0.75;
}

.article-body {
  padding: 36px 56px 20px;
  color: #333;
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: 0.02em;
}

.article-body .art_cont,
.article-body .new_con2 {
  max-width: 100%;
}

.article-body .art_cont p,
.article-body .new_con2 p {
  margin: 0 0 1.15em !important;
  line-height: 1.95 !important;
  color: #333;
}

.article-body .art_cont img,
.article-body .new_con2 img {
  display: block !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 28px auto !important;
  border: 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.article-body .art_cont a {
  color: #cb0401;
  text-decoration: none;
  border-bottom: 1px solid rgba(203, 4, 1, 0.25);
}

.article-body .art_cont a:hover {
  border-bottom-color: #cb0401;
}

.article-foot {
  padding: 8px 56px 40px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.article-tags a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid #eadfde;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: all 0.25s ease;
}

.article-tags a:hover {
  color: #fff;
  background: #cb0401;
  border-color: #cb0401;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.article-nav a {
  display: block;
  padding: 18px 20px;
  background: #faf7f6;
  border: 1px solid #f0e4e3;
  text-decoration: none;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  min-height: 78px;
}

.article-nav a:hover {
  background: #fff8f7;
  border-color: #cb0401;
  transform: translateY(-2px);
}

.article-nav .an-label {
  display: block;
  margin-bottom: 8px;
  color: #cb0401;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.article-nav .an-title {
  display: block;
  color: #222;
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-nav .is-empty {
  color: #aaa;
  cursor: default;
  pointer-events: none;
}

.article-nav .an-next {
  text-align: right;
}

.article-related {
  padding-top: 8px;
  border-top: 1px solid #f0e4e3;
}

.article-related h4 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
}

.article-related h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  background: #cb0401;
}

.article-related ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}

.article-related li {
  list-style: none;
  border-bottom: 1px dashed #eee;
}

.article-related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  color: #444;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.article-related a:hover {
  color: #cb0401;
  padding-left: 4px;
}

.article-related em {
  flex-shrink: 0;
  color: #bbb;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 22px;
  background: #cb0401;
  color: #fff !important;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-decoration: none !important;
  transition: background 0.25s ease, transform 0.25s ease;
}

.article-back:hover {
  background: #a50301;
  color: #fff !important;
  transform: translateY(-1px);
}

/* 产品详情页轻优化 */
.case-detail {
  display: flex;
  gap: 36px;
  padding: 20px 0 40px;
}

.case-detail .cd-gallery {
  flex: 0 0 46%;
}

.case-detail .cd-gallery img {
  width: 100%;
  display: block;
  background: #f7f7f7;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.case-detail .cd-info {
  flex: 1;
  min-width: 0;
}

.case-detail .cd-info h1 {
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 2px solid #cb0401;
  color: #1a1a1a;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", "Microsoft YaHei", serif;
}

.case-detail .cd-section-title {
  margin: 22px 0 14px;
  color: #cb0401;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.case-detail .cd-content {
  color: #444;
  font-size: 15px;
  line-height: 1.9;
}

.case-detail .cd-content img {
  max-width: 100%;
  height: auto;
}

.case-recommend {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.case-recommend h3 {
  margin: 0 0 16px;
  font-size: 16px;
  color: #222;
  letter-spacing: 0.08em;
}

.case-recommend .cr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.case-recommend a {
  display: block;
  text-decoration: none;
  color: #444;
  transition: color 0.2s ease;
}

.case-recommend a:hover {
  color: #cb0401;
}

.case-recommend img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: #f5f5f5;
  margin-bottom: 8px;
}

.case-recommend span {
  display: block;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

@keyframes artFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .article-hero,
  .article-body,
  .article-foot {
    padding-left: 22px;
    padding-right: 22px;
  }
  .article-title {
    font-size: 24px;
  }
  .article-nav,
  .article-related ul,
  .case-detail {
    grid-template-columns: 1fr;
    display: block;
  }
  .case-detail .cd-gallery {
    margin-bottom: 24px;
  }
  .article-nav a + a {
    margin-top: 12px;
  }
}
