/* CMS SEO 站点层 — /cms-site/site.css（与 CoreCmsSiteService 布局 class 对齐） */
*,
*::before,
*::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #0f172a;
  background: #f8fafc;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #eef2f6;
  backdrop-filter: blur(8px);
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}
.site-logo { width: 32px; height: 32px; object-fit: contain; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
}
.site-nav__link,
.site-nav__sub {
  display: inline-block;
  padding: 8px 12px;
  color: #334155;
  font-size: 14px;
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link.is-active,
.site-nav__sub:hover,
.site-nav__sub.is-active { color: var(--site-theme, #1676ff); }
.site-nav__item { position: relative; }
.site-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 140px;
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 6px 0;
  flex-direction: column;
}
.site-nav__item:hover .site-nav__dropdown { display: flex; }
.site-actions { display: flex; gap: 8px; flex-shrink: 0; }
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--site-theme, #1676ff);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}
.site-btn--ghost {
  background: transparent;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.site-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
.site-empty {
  padding: 80px 16px;
  text-align: center;
  color: #94a3b8;
}
.site-footer {
  border-top: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-size: 13px;
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.cms-renderer { min-height: 240px; }
.cms-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 8px;
}
.cms-carousel__img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.cms-search {
  margin: 12px 0;
  padding: 10px 16px;
  color: #909399;
  font-size: 14px;
}
.cms-hot { position: relative; }
.cms-hot__img { width: 100%; }
.cms-hot__area { position: absolute; display: block; }
.cms-notice {
  margin: 12px 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: #fff7e6;
}
.cms-video, .cms-image { width: 100%; }
.cms-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px 0;
}
.cms-imagetext {
  display: flex;
  gap: 20px;
  padding: 16px 0;
}
.cms-imagetext.right { flex-direction: row-reverse; }
.cms-imagetext__img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}
.cms-imagetext-link { display: block; color: inherit; }
.cms-graphic {
  display: grid;
  gap: 16px;
  padding: 16px 0;
}
.cms-graphic__item { text-align: center; }
.cms-graphic__item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  margin: 0 auto 6px;
}
.cms-tabs__nav {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 12px;
}
.cms-tabs__nav span { padding-bottom: 8px; color: #666; }
.cms-tabs__nav span.active {
  color: var(--site-theme, #1676ff);
  border-bottom: 2px solid var(--site-theme, #1676ff);
}
.cms-tabs__panel { margin-bottom: 16px; }
.cms-title { margin: 16px 0; font-weight: 600; }
.cms-title__more {
  float: right;
  font-size: 13px;
  font-weight: 400;
  color: #94a3b8;
}
.cms-rich { line-height: 1.7; }
.cms-fallback { color: #94a3b8; font-size: 13px; padding: 8px 0; }
.cms-footer {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  background: #0f172a;
  color: #e2e8f0;
}
.cms-footer a { color: inherit; }

body.is-mobile .site-header__inner { flex-wrap: wrap; padding: 10px 12px; }
body.is-mobile .site-nav { order: 3; width: 100%; }
body.is-mobile .site-actions .site-btn--ghost { display: none; }
body.is-mobile .site-main { padding: 16px 12px 48px; }
body.is-mobile .cms-imagetext { flex-direction: column; }
body.is-mobile .cms-imagetext__img { width: 100%; height: auto; }
