/* 媒速排前台样式 - 简洁大气风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  line-height: 1.6;
}
a { color: #333; text-decoration: none; transition: color .2s; }
a:hover { color: #ff6b35; }
img { max-width: 100%; display: block; }

.msp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ===== 顶部 ===== */
.msp-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.msp-header .msp-wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.msp-logo {
  display: flex; flex-direction: column; line-height: 1.2;
}
.msp-logo strong { font-size: 22px; color: #ff6b35; }
.msp-logo small  { font-size: 11px; color: #888; }
.msp-nav { display: flex; gap: 4px; }
.msp-nav a {
  padding: 8px 18px; border-radius: 4px;
  font-size: 15px; color: #333;
}
.msp-nav a:hover, .msp-nav a.active {
  background: #ff6b35; color: #fff;
}

/* ===== Banner ===== */
.msp-banner {
  position: relative; height: 420px; overflow: hidden;
  background: linear-gradient(135deg, #4a148c 0%, #1a237e 100%);
}
.msp-banner img { width: 100%; height: 100%; object-fit: cover; }
.msp-banner-title {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  color: #fff; font-size: 40px; font-weight: 700;
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}

/* ===== Section ===== */
.msp-section { padding: 60px 0; }
.msp-bg-grey { background: #f8f9fb; }
.msp-title {
  text-align: center; font-size: 28px; font-weight: 600;
  margin-bottom: 36px; position: relative;
}
.msp-title span {
  padding: 0 16px; background: #fff;
}
.msp-bg-grey .msp-title span { background: #f8f9fb; }
.msp-title::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 1px; background: #eee; z-index: -1;
}
.msp-more {
  position: absolute; right: 16px; top: 50%;
  font-size: 14px; color: #999; font-weight: 400;
  background: #fff; padding: 4px 12px;
}
.msp-bg-grey .msp-more { background: #f8f9fb; }

/* ===== Product Grid ===== */
.msp-product-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.msp-product-card {
  background: #fff; padding: 28px 18px; text-align: center;
  border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .3s;
}
.msp-product-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(255,107,53,.18);
}
.msp-icon {
  display: inline-block; width: 50px; height: 50px; line-height: 50px;
  border-radius: 50%; background: #ff6b35; color: #fff;
  font-size: 22px; font-weight: 700;
  margin-bottom: 14px;
}
.msp-product-card h3 { font-size: 17px; margin-bottom: 8px; color: #333; }
.msp-product-card p  { font-size: 13px; color: #888; }

/* ===== Case Grid ===== */
.msp-case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.msp-case-card {
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .3s;
}
.msp-case-card:hover {
  transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.msp-case-card img,
.msp-case-img-placeholder {
  width: 100%; height: 200px; object-fit: cover;
}
.msp-case-img-placeholder {
  background: linear-gradient(135deg, #4a148c, #1a237e);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 700;
}
.msp-case-card h4 {
  padding: 16px; font-size: 16px; color: #333;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ===== News List ===== */
.msp-news-list {
  display: flex; flex-direction: column;
  background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.msp-news-item {
  display: flex; align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #f0f0f0;
}
.msp-news-item:last-child { border-bottom: none; }
.msp-news-item:hover { background: #fafafa; }
.msp-news-date {
  width: 100px; color: #999; font-size: 13px;
}
.msp-news-title {
  flex: 1; color: #333; font-size: 15px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-right: 12px;
}
.msp-news-cat {
  background: #ff6b35; color: #fff;
  padding: 3px 12px; border-radius: 12px;
  font-size: 12px;
}

/* ===== 栏目页 ===== */
.msp-page { padding: 40px 0 60px; min-height: 60vh; }
.msp-subcat-bar {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 28px;
}
.msp-subcat-bar a {
  padding: 6px 16px; border-radius: 16px;
  background: #fff; color: #555; font-size: 14px;
}
.msp-subcat-bar a.active, .msp-subcat-bar a:hover {
  background: #ff6b35; color: #fff;
}

.msp-article-list {
  display: grid; gap: 18px;
}
.msp-article-card {
  display: block; background: #fff; padding: 22px 24px;
  border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: all .2s;
}
.msp-article-card:hover { box-shadow: 0 4px 20px rgba(255,107,53,.18); }
.msp-article-card h3 { font-size: 18px; margin-bottom: 8px; color: #222; }
.msp-summary {
  color: #888; font-size: 13px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.msp-meta {
  margin-top: 10px; color: #aaa; font-size: 12px;
  display: flex; gap: 16px;
}

.msp-pager { text-align: center; margin-top: 30px; }
.msp-pager a {
  display: inline-block; padding: 6px 14px; margin: 0 4px;
  background: #fff; color: #555; border-radius: 4px;
  border: 1px solid #eee;
}
.msp-pager a.active, .msp-pager a:hover {
  background: #ff6b35; color: #fff; border-color: #ff6b35;
}
.msp-empty { text-align: center; color: #999; padding: 60px 0; }

/* ===== 文章详情 ===== */
.msp-article-page { padding: 30px 0 60px; }
.msp-breadcrumb {
  font-size: 13px; color: #999; margin-bottom: 18px;
}
.msp-breadcrumb a:hover { color: #ff6b35; }
.msp-article {
  background: #fff; padding: 40px; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.msp-article h1 {
  font-size: 28px; line-height: 1.4;
  text-align: center; margin-bottom: 18px;
}
.msp-article-meta {
  text-align: center; color: #999; font-size: 13px;
  border-bottom: 1px solid #f0f0f0; padding-bottom: 16px; margin-bottom: 24px;
}
.msp-article-meta span { margin: 0 12px; }
.msp-article-summary {
  background: #fafafa; padding: 14px 18px; border-left: 3px solid #ff6b35;
  color: #666; font-size: 14px; margin-bottom: 24px;
}
.msp-article-body {
  font-size: 16px; line-height: 1.85; color: #333;
}
.msp-article-body p { margin-bottom: 16px; }
.msp-article-body img { margin: 12px auto; border-radius: 4px; }
.msp-article-body h2, .msp-article-body h3 {
  margin: 28px 0 14px; color: #222;
}
.msp-article-tags {
  margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0;
  font-size: 13px;
}
.msp-article-tags span {
  display: inline-block; padding: 3px 12px; margin: 4px 4px 0 0;
  background: #f5f5f5; border-radius: 12px; color: #777;
}
.msp-prevnext {
  display: flex; justify-content: space-between;
  margin-top: 24px; padding: 18px 24px;
  background: #fff; border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  font-size: 14px;
}
.msp-prevnext .disabled { color: #ccc; }
.msp-related {
  margin-top: 30px; padding: 24px; background: #fff;
  border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.msp-related h3 { font-size: 18px; margin-bottom: 14px; }
.msp-related ul { list-style: none; }
.msp-related li {
  padding: 8px 0; border-bottom: 1px dashed #eee;
}
.msp-related li:before { content: '·'; color: #ff6b35; margin-right: 8px; }

.msp-page-content {
  background: #fff; padding: 40px; border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  line-height: 1.85; font-size: 15px;
}

/* ===== Footer ===== */
.msp-footer {
  background: #1a1a1a; color: #aaa; padding: 40px 0 20px;
  margin-top: 40px;
}
.msp-footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 24px;
}
.msp-footer strong { color: #ff6b35; font-size: 20px; }
.msp-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.msp-footer a { display: block; color: #aaa; padding: 4px 0; }
.msp-footer a:hover { color: #ff6b35; }
.msp-copyright {
  text-align: center; padding-top: 18px; border-top: 1px solid #333;
  font-size: 12px;
}
.msp-copyright a { color: #aaa; display: inline; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .msp-product-grid { grid-template-columns: repeat(2, 1fr); }
  .msp-case-grid { grid-template-columns: 1fr; }
  .msp-footer-grid { grid-template-columns: 1fr; }
  .msp-banner { height: 240px; }
  .msp-banner-title { font-size: 24px; }
  .msp-nav a { padding: 6px 10px; font-size: 13px; }
  .msp-article { padding: 20px; }
  .msp-article h1 { font-size: 22px; }
  .msp-news-item { flex-wrap: wrap; padding: 12px 16px; }
}
