/* 案例深度页专用排版:全部选择器都挂在 .case-study 下,不影响站内其它页面。 */

.case-study {
  --cs-max: 860px;
  --cs-wide: 930px;
  --cs-bg: #000;
  --cs-surface: #132436;
  --cs-ink: #fff;
  --cs-sand: #a9caec;
  --cs-dim: #6f87a0;
  --cs-line: rgba(169, 202, 236, .18);
  --cs-accent: #2a3ded;
  --cs-highlight: #6472f3;
  display: block;
  background: var(--cs-bg);
  color: var(--cs-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: .01em;
}

/* ---------- 入场动效 ---------- */
.case-study .fx { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.32,.72,0,1), transform .8s cubic-bezier(.32,.72,0,1); }
.case-study .fx.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .case-study .fx { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
.case-study .cs-hero {
  position: relative;
  text-align: center;
  isolation: isolate;
  min-height: 510px;
  padding: 138px 40px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--cs-bg);
  background-image: linear-gradient(90deg, rgba(5, 13, 21, .88), rgba(5, 13, 21, .48)), url("../images/cases/longquan-sword-detail.jpg");
  background-position: center;
  background-size: cover;
}
.case-study .cs-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, .58) 100%);
  pointer-events: none;
}
.case-study .cs-tag {
  display: inline-block;
  position: relative;
  padding: 7px 10px;
  background: rgba(19, 36, 54, .9);
  color: var(--cs-dim);
  font-family: ui-monospace, "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  letter-spacing: .12em;
  margin-bottom: 34px;
}
.case-study .cs-hero h1 {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 26px;
  color: var(--cs-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.case-study .cs-lede {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  color: var(--cs-sand);
  font-size: 17px;
  line-height: 1.8;
}
.case-study .cs-hero-cta {
  position: relative;
  margin-top: 42px;
  display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap;
}

/* ---------- 数据条 ---------- */
.case-study .cs-stats-wrap { max-width: 1060px; margin: 0 auto; padding: 0 40px; }
.case-study .cs-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 930px;
  margin: 0 auto;
  padding: 30px 0;
  background: var(--cs-surface);
}
.case-study .cs-stat { text-align: center; flex: 1; padding: 0 22px; border-left: 1px solid var(--cs-line); }
.case-study .cs-stat:first-child { border-left: 0; }
.case-study .cs-stat .num { font-size: 34px; font-weight: 500; color: var(--cs-ink); line-height: 1.3; margin-bottom: 6px; }
.case-study .cs-stat .lab { font-size: 13px; color: var(--cs-dim); line-height: 1.7; }

/* ---------- 正文 ---------- */
.case-study .cs-article { max-width: var(--cs-max); margin: 0 auto; padding: 44px 24px 104px; }
.case-study .cs-article h2 {
  color: var(--cs-ink);
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.02em;
  margin: 92px 0 25px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.case-study .cs-article h2::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cs-accent);
  flex-shrink: 0;
  transform: translateY(-4px);
}
.case-study .cs-article p { max-width: 60ch; margin: 0 0 24px; color: var(--cs-sand); }
.case-study .cs-article a { color: var(--cs-sand); border-bottom: 1px solid var(--cs-highlight); transition: color .35s cubic-bezier(.32,.72,0,1); }
.case-study .cs-article a:hover { color: var(--cs-highlight); }

/* 图片只略宽于正文,让阅读与画面保持同一节奏。 */
.case-study figure {
  width: min(var(--cs-wide), 92vw);
  margin: 54px 0 54px calc(50% - min(465px, 46vw));
}
.case-study .img-frame {
  overflow: hidden;
  background: var(--cs-surface);
}
.case-study figure img { width: 100%; height: auto; display: block; filter: grayscale(1) contrast(1.06) brightness(.9); transition: filter .8s cubic-bezier(.32,.72,0,1); }
.case-study figure:hover img { filter: grayscale(.35) contrast(1.03) brightness(.96); }
.case-study figcaption { margin-top: 14px; font-size: 13px; color: var(--cs-dim); text-align: center; letter-spacing: .02em; }

/* ---------- 交付清单 ---------- */
.case-study .cs-list { list-style: none; margin: 30px 0 22px; padding: 0; }
.case-study .cs-list li {
  padding: 15px 0; border-bottom: 1px solid var(--cs-line);
  display: flex; gap: 20px; align-items: baseline; font-size: 15px; line-height: 1.8;
}
.case-study .cs-list li:first-child { border-top: 1px solid var(--cs-line); }
.case-study .cs-list .k { flex: 0 0 116px; color: var(--cs-ink); }
.case-study .cs-list .v { flex: 1; color: var(--cs-dim); }

/* ---------- FAQ ---------- */
.case-study .cs-qa { margin: 0 0 38px; }
.case-study .cs-qa h3 {
  font-size: 17px; font-weight: 500; color: var(--cs-ink); line-height: 1.8;
  margin-bottom: 10px; display: flex; align-items: baseline; gap: 12px;
}
.case-study .cs-qa h3::before {
  content: 'Q'; font-family: ui-monospace, "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; font-size: 12px; color: var(--cs-accent);
  width: 24px; height: 24px; line-height: 23px; text-align: center;
  flex-shrink: 0; transform: translateY(2px);
}
.case-study .cs-qa p { margin: 0; padding-left: 36px; }

/* ---------- 底部 CTA ---------- */
.case-study .cs-cta-wrap { max-width: 1024px; margin: 0 auto; padding: 20px 40px 104px; }
.case-study .cs-cta {
  position: relative;
  text-align: center;
  padding: 92px 40px;
  background: var(--cs-surface);
}
.case-study .cs-cta h2 {
  position: relative;
  color: var(--cs-ink);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
  margin: 0 0 18px;
}
.case-study .cs-cta p { position: relative; font-size: 15px; color: var(--cs-dim); margin-bottom: 34px; }
.case-study .cs-cta .cs-cta-row { position: relative; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .case-study figure { width: 100%; margin-left: 0; }
}
@media (max-width: 991px) {
  .case-study .cs-stats { flex-wrap: wrap; gap: 32px 0; }
  .case-study .cs-stat { flex: 1 1 50%; }
}
@media (max-width: 640px) {
  .case-study .cs-hero { min-height: 440px; padding: 90px 20px 64px; background-position: 58% center; }
  .case-study .cs-tag { margin-bottom: 26px; }
  .case-study .cs-hero h1 { font-size: 34px; line-height: 1.18; }
  .case-study .cs-lede { font-size: 15.5px; }
  .case-study .cs-stats-wrap { padding: 0 20px; }
  .case-study .cs-stats { padding: 0; }
  .case-study .cs-stat { flex: 1 1 50%; padding: 24px 12px; border-top: 1px solid var(--cs-line); }
  .case-study .cs-stat:nth-child(odd) { border-left: 0; }
  .case-study .cs-stat:nth-child(-n+2) { border-top: 0; }
  .case-study .cs-stat .num { font-size: 26px; }
  .case-study .cs-article { padding: 30px 20px 72px; }
  .case-study .cs-article h2 { font-size: 21px; margin: 56px 0 18px; }
  .case-study .cs-list li { flex-direction: column; gap: 4px; }
  .case-study .cs-list .k { flex: none; }
  .case-study .cs-qa p { padding-left: 0; }
  .case-study .cs-cta-wrap { padding: 10px 20px 70px; }
  .case-study .cs-cta { padding: 64px 24px; }
  .case-study .cs-cta h2 { font-size: 24px; }
}

/* ---------- 按钮(本页自带,不依赖站内被隐藏的 button-2) ---------- */
.case-study .cs-btn {
  display: inline-block;
  background-image: linear-gradient(20deg, var(--cs-accent), var(--cs-highlight));
  color: var(--cs-ink);
  padding: 14px 28px;
  border: 0;
  font-family: ui-monospace, "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 0 7px 50px -14px var(--cs-highlight);
  transition: transform .45s cubic-bezier(.32,.72,0,1), box-shadow .45s cubic-bezier(.32,.72,0,1);
}
.case-study .cs-btn:hover { box-shadow: 0 0 0 -10px var(--cs-highlight), inset -15px 13px 30px 0 var(--cs-surface), inset 20px -55px 30px 0 var(--cs-surface); color: var(--cs-ink); transform: translateY(-2px); }
.case-study .cs-btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--cs-sand);
  padding: 13px 27px;
  border: 1px solid var(--cs-line);
  font-family: ui-monospace, "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color .45s cubic-bezier(.32,.72,0,1), border-color .45s cubic-bezier(.32,.72,0,1);
}
.case-study .cs-btn-ghost:hover { border-color: var(--cs-highlight); color: var(--cs-ink); }
.case-study .cs-article .cs-btn, .case-study .cs-article .cs-btn-ghost { border-bottom: 1px solid transparent; }
@media (max-width: 640px) {
  .case-study .cs-btn, .case-study .cs-btn-ghost { padding: 12px 26px; font-size: 15px; }
}
