:root {
  --c-deep: #3a2e73;
  --c-purple: #5e4fc0;
  --c-lite: #8e7df0;
  --c-bg: #f4f2fc;
  --c-ink: #20203a;
  --c-mut: #6b6b85;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Noto Sans SC', system-ui, -apple-system, 'Microsoft YaHei', sans-serif;
  color: var(--c-ink);
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }

/* 导航 */
.cms-nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eceaff;
}
.cms-nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.cms-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cms-brand img { height: 30px; width: auto; }
.cms-brand span { font-size: 13px; color: var(--c-mut); }
.cms-links a {
  margin-left: 26px; text-decoration: none; color: #444; font-size: 15px;
  transition: color 0.2s;
}
.cms-links a:hover, .cms-links a.cur { color: var(--c-purple); font-weight: 600; }

/* 主体 */
.cms-main { max-width: 1180px; margin: 0 auto; padding: 56px 22px 72px; }
.cms-hero-sm { text-align: center; margin-bottom: 44px; }
.cms-eyebrow {
  letter-spacing: 3px; font-size: 13px; color: var(--c-purple);
  font-weight: 600; margin: 0 0 8px;
}
.cms-h1 {
  font-family: 'Noto Serif SC', serif; font-size: 38px; margin: 0 0 14px;
  color: var(--c-deep);
}
.cms-sub { color: var(--c-mut); max-width: 640px; margin: 0 auto; font-size: 15px; }

/* 网格 */
.cms-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.cms-empty { color: var(--c-mut); text-align: center; padding: 40px 0; }

/* 知识库卡片 */
.kb-tile {
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid #eceaff; border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s; display: block;
}
.kb-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(94, 79, 192, 0.16); }
.kb-card-pic { aspect-ratio: 16 / 10; background: var(--c-bg); }
.kb-card-pic img { width: 100%; height: 100%; object-fit: cover; }
.kb-card-pic img.placeholder { object-fit: contain; padding: 18px; background: #f7f6ff; }
.kb-card-pic--empty {
  background: linear-gradient(135deg, #efeaff, #f6f3ff);
}
.kb-tile-cent { padding: 16px 18px 20px; }
.kb-tile-title {
  margin: 0 0 8px; font-size: 16px; font-weight: 600; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.kb-card-time { margin: 0; font-size: 12px; color: var(--c-mut); }

/* 案例卡片 */
.cs-tile {
  text-decoration: none; color: inherit; background: #fff;
  border: 1px solid #eceaff; border-radius: 14px; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s; display: block;
}
.cs-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(94, 79, 192, 0.16); }
.cs-tile-pic { aspect-ratio: 4 / 3; background: var(--c-bg); }
.cs-tile-pic img { width: 100%; height: 100%; object-fit: cover; }
.cs-tile-pic img.placeholder { object-fit: contain; padding: 22px; background: #f7f6ff; }
.cs-tile-pic--empty { background: linear-gradient(135deg, #efeaff, #f6f3ff); }
.cs-tile-cent { padding: 16px 18px 20px; }
.cs-tile-tag {
  display: inline-block; font-size: 12px; color: var(--c-purple);
  background: #efeaff; border-radius: 999px; padding: 2px 10px; margin-bottom: 8px;
}
.cs-tile-title {
  margin: 0 0 6px; font-size: 17px; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.cs-tile-client { margin: 0 0 10px; font-size: 13px; color: var(--c-mut); }
.cs-tile-btn {
  font-size: 13px; color: var(--c-purple); font-weight: 600;
}

/* 页脚 */
.cms-foot { background: #faf9ff; border-top: 1px solid #eceaff; padding: 36px 22px; }
.cms-foot-inner { max-width: 1180px; margin: 0 auto; text-align: center; }
.cms-foot-logo { height: 28px; margin: 0 auto 10px; }
.cms-foot-slogan { display: block; color: var(--c-deep); font-weight: 600; margin-bottom: 6px; }
.cms-foot-copy { color: var(--c-mut); font-size: 13px; margin: 0; }

/* ===== 案例详情 ===== */
.cd-wrap { }
.cd-hero {
  min-height: 64vh; padding: 120px 22px 90px;
  background: linear-gradient(135deg, #3a2e73 0%, #5e4fc0 55%, #8e7df0 100%);
  color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  position: relative;
}
.cd-eyebrow {
  font-size: 13px; letter-spacing: 2px; background: rgba(255, 255, 255, 0.18);
  padding: 4px 14px; border-radius: 999px; margin: 0 0 18px;
}
.cd-title {
  font-family: 'Noto Serif SC', serif; font-size: clamp(28px, 5vw, 46px);
  margin: 0 0 14px; max-width: 820px; line-height: 1.3;
}
.cd-client { margin: 0; font-size: 16px; opacity: 0.86; }
.cd-scroll {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
}
.cd-scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px;
  margin-left: -2px; background: #fff; border-radius: 2px;
  animation: cd-bounce 1.6s infinite;
}
@keyframes cd-bounce {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 1; }
}

.cd-body {
  max-width: 820px; margin: 0 auto; padding: 56px 22px 80px;
}
.cd-block { margin-bottom: 36px; }
.cd-block-label {
  font-size: 14px; font-weight: 700; color: var(--c-purple);
  letter-spacing: 1px; margin: 0 0 12px;
  border-left: 4px solid var(--c-purple); padding-left: 10px;
}
.cd-block-body { font-size: 16px; color: #333; }
.cd-block-body p { margin: 0 0 12px; }

/* 成果数字卡 */
.cd-results { margin-bottom: 40px; }
.cd-num-row {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 14px;
}
.cd-num {
  background: linear-gradient(135deg, #5e4fc0, #8e7df0);
  color: #fff; border-radius: 14px; padding: 26px 18px; text-align: center;
  box-shadow: 0 10px 26px rgba(94, 79, 192, 0.25);
}
.cd-num-v { font-size: 32px; font-weight: 700; margin: 0 0 6px; font-family: 'Noto Serif SC', serif; }
.cd-num-d { font-size: 14px; margin: 0; opacity: 0.92; }

/* 富文本正文 */
.cd-rich { font-size: 16px; color: #333; margin-top: 10px; }
.cd-rich h1, .cd-rich h2, .cd-rich h3 {
  font-family: 'Noto Serif SC', serif; color: var(--c-deep); margin: 30px 0 14px;
}
.cd-rich h1 { font-size: 26px; }
.cd-rich h2 { font-size: 22px; }
.cd-rich h3 { font-size: 19px; }
.cd-rich p { margin: 0 0 16px; }
.cd-rich img { border-radius: 10px; margin: 18px 0; }
.cd-rich ul, .cd-rich ol { padding-left: 22px; margin: 0 0 16px; }
.cd-rich blockquote {
  margin: 18px 0; padding: 12px 18px; background: var(--c-bg);
  border-left: 4px solid var(--c-lite); color: var(--c-mut); border-radius: 0 8px 8px 0;
}
.cd-rich .ql-align-center { text-align: center; }
.cd-rich .ql-align-right { text-align: right; }

.cd-back {
  display: inline-block; margin-top: 30px; color: var(--c-purple);
  text-decoration: none; font-weight: 600;
}
.cd-back:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .cms-h1 { font-size: 30px; }
  .cd-hero { min-height: 56vh; padding: 100px 18px 70px; }
}
