/* 对齐门户主题色 tokens.css；顶栏高度沿用 tokens.css --header-h，勿覆盖为 0 */
:root {
  --primary: #d93751;
  --primary-light: #f43a58;
  --primary-magenta: #bf3a85;
  --foreground: #000000;
  --muted: #666666;
  --text-muted: #999999;
  --bg-section: #f6f8fc;
  --line: #e0e7ef;
}

.hero { margin-top: 0; }

/* 案例详情 Hero：统一项目主题色（海军蓝 + 品牌红），全幅背景图透出 */
.hero--case-print,
.hero--case-egov {
  background:
    radial-gradient(900px 420px at 85% 15%, hsl(351 79% 54% / 0.18), transparent 55%),
    radial-gradient(700px 380px at 12% 80%, hsl(211 74% 30% / 0.14), transparent 52%),
    linear-gradient(160deg, #121820 0%, #1a222c 48%, #1c181c 100%);
}

.hero--case-print .hero-photo.has-image {
  background-image: url('/cases/case-print-center-hero.jpg?v=20260914g');
  background-position: center center;
  background-size: cover;
  opacity: 1;
}

.hero--case-egov .hero-photo.has-image {
  background-image: url('/cases/case-egov-stego-hero.jpg?v=20260914g');
  background-position: center center;
  background-size: cover;
  opacity: 1;
}

.hero--case-print .hero-shade,
.hero--case-egov .hero-shade {
  /* 自左向右过渡，文案区覆盖更实一些，右侧再渐隐 */
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.55) 28%,
    rgba(255, 255, 255, 0.42) 48%,
    rgba(255, 255, 255, 0.22) 62%,
    rgba(255, 255, 255, 0.08) 74%,
    transparent 86%
  );
}

.hero--case-print .hero-orb1,
.hero--case-egov .hero-orb1 {
  opacity: 0.12;
}

.hero--case-print .hero-orb2,
.hero--case-egov .hero-orb2 {
  opacity: 0.08;
}

/* 与页面其他 section 的 .container 左边缘对齐 */
.hero--case-print .container.hero-inner,
.hero--case-egov .container.hero-inner {
  max-width: var(--max-w, 80rem);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  isolation: auto;
}

.hero--case-print .hero-inner::before,
.hero--case-egov .hero-inner::before {
  content: none;
  display: none;
}

.hero--case-print .hero-label,
.hero--case-print .hero-meta,
.hero--case-print .hero-tags,
.hero--case-print .btn-row,
.hero--case-egov .hero-label,
.hero--case-egov .hero-meta,
.hero--case-egov .hero-tags,
.hero--case-egov .btn-row {
  justify-content: flex-start;
}

.hero--case-print .hero-label-text,
.hero--case-egov .hero-label-text {
  color: var(--primary, #d93751);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero--case-print h1,
.hero--case-egov h1 {
  color: #0f345b;
  text-align: left;
  max-width: 40rem;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero--case-print h1 .accent,
.hero--case-egov h1 .accent {
  color: var(--primary, #d93751);
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.hero--case-print .hero-desc,
.hero--case-egov .hero-desc {
  color: #1a2b3c;
  text-align: left;
  max-width: 40rem;
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-weight: 500;
}

.hero--case-print .hero-meta,
.hero--case-print .hero-tags,
.hero--case-print .btn-row,
.hero--case-egov .hero-meta,
.hero--case-egov .hero-tags,
.hero--case-egov .btn-row {
  max-width: 40rem;
}

.hero--case-print .hero-meta-item,
.hero--case-egov .hero-meta-item {
  color: #243447;
  text-shadow: none;
  font-weight: 500;
}

.hero--case-print .hero-meta-item::before,
.hero--case-egov .hero-meta-item::before {
  background: var(--primary, #d93751);
  box-shadow: 0 0 0 3px rgba(217, 55, 81, 0.15);
}

.hero--case-print .hero-tag,
.hero--case-egov .hero-tag {
  color: #0f345b;
  background: rgba(15, 52, 91, 0.06);
  border-color: rgba(15, 52, 91, 0.16);
  backdrop-filter: none;
  text-shadow: none;
}

/* 覆盖 solution-static-shell 的白字幽灵按钮，适配浅色蒙层 */
.app-main .hero--case-print a.btn.btn-ghost,
.app-main .hero--case-egov a.btn.btn-ghost,
.hero--case-print .btn.btn-ghost,
.hero--case-egov .btn.btn-ghost {
  background: #fff !important;
  border: 1px solid rgba(217, 55, 81, 0.65) !important;
  color: #d93751 !important;
  text-shadow: none;
  backdrop-filter: none;
  box-shadow: 0 2px 10px rgba(15, 52, 91, 0.08);
}

.app-main .hero--case-print a.btn.btn-ghost:hover,
.app-main .hero--case-egov a.btn.btn-ghost:hover,
.hero--case-print .btn.btn-ghost:hover,
.hero--case-egov .btn.btn-ghost:hover {
  background: #d93751 !important;
  color: #fff !important;
  border-color: #d93751 !important;
  box-shadow: 0 6px 18px rgba(217, 55, 81, 0.28);
}

.section-muted { background: var(--bg-section); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  margin: 0 0 1.75rem;
}
.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
}
.hero-meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 55, 81, 0.2);
}

.feature-card.has-title {
  flex-direction: column;
  gap: 0.75rem;
}
.feature-card.has-title .feature-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.feature-card.has-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.4;
}
.feature-card.has-title .feature-text {
  color: var(--muted);
}

.arch-board {
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(700px 280px at 90% 0%, rgba(217, 55, 81, 0.22), transparent 55%),
    linear-gradient(160deg, #0a0a0a 0%, #141018 48%, #1a0f12 100%);
  border: 1px solid rgba(217, 55, 81, 0.22);
  color: #fff;
}
.arch-board-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
}
.arch-board-title span { color: var(--primary); }
.arch-layer {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(217, 55, 81, 0.22);
  border-radius: 0.55rem;
  padding: 1.1rem 1rem;
  margin-bottom: 0.75rem;
  text-align: center;
}
.arch-layer-title {
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
}
.arch-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}
.arch-module {
  padding: 0.45rem 0.9rem;
  border-radius: 0.4rem;
  background: rgba(217, 55, 81, 0.12);
  border: 1px solid rgba(217, 55, 81, 0.3);
  color: #fff;
  font-size: 0.8125rem;
}
.arch-arrow {
  text-align: center;
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0.15rem 0 0.55rem;
  line-height: 1;
}
.arch-split {
  display: grid;
  gap: 1rem;
  margin: 0.35rem 0 0.85rem;
}
@media (min-width: 900px) {
  .arch-split { grid-template-columns: 1fr 1fr; }
}
.arch-zone {
  border: 1px dashed rgba(217, 55, 81, 0.28);
  border-radius: 0.55rem;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.02);
}
.arch-zone-title {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
}
.arch-zone .arch-layer { margin-bottom: 0.55rem; padding: 0.85rem 0.7rem; }
.arch-printers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 0.25rem 0 0.75rem;
}
.arch-printer {
  min-width: 7rem;
  text-align: center;
  padding: 0.75rem 1rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.compare-table thead {
  background: linear-gradient(160deg, #f43a58 10%, #bf3a85 80%);
}
.compare-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.compare-table th:first-child { width: 22%; }
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f1f1;
  color: var(--muted);
  font-size: 0.9375rem;
  vertical-align: top;
  line-height: 1.7;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child {
  color: var(--foreground);
  font-weight: 600;
}
.compare-table td:nth-child(3) {
  color: var(--primary);
  font-weight: 600;
}
.compare-table tbody tr:hover { background: #fafbfc; }

/* 痛点区：引导语 + 参考站编号卡片 */
.section-head .section-lead {
  margin: 0.85rem auto 0;
  max-width: 40rem;
  color: #666666;
  font-size: 1.02rem;
  line-height: 1.85;
}

#pain .pain-cards {
  margin-top: 0.25rem;
}
#pain .pain-cards .card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
#pain .pain-cards .card p {
  margin-bottom: 0;
}
#pain .pain-cards .card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: #d93751;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}
#pain .pain-cards .card:hover::before {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  /* 5 张时更均衡：前排 3 + 后排居中感用自动填满 */
  #pain .pain-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  #pain .pain-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.section-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
  margin: -1.25rem auto 2rem;
  line-height: 1.8;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.summary-tag {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
}
.cta-band > div:first-child {
  flex: 1 1 18rem;
  max-width: 40rem;
}
.cta-band .btn-row {
  flex-shrink: 0;
}
.cta-band p {
  margin: 0 0 0.15rem;
}

/* 客户背景：复用参考站 prose-block，仅补多段落间距与居中宽度 */
#overview .prose-block {
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}
#overview .prose-block p + p {
  margin-top: 1rem;
}

.card h3,
.info-body,
.feature-card.has-title h3,
.adapt-label,
.section-head h2 {
  color: var(--foreground);
}
.section-head h2 .accent,
.hero h1 .accent,
.card:hover h3 {
  color: var(--primary);
}
.card p,
.prose-block p,
.adapt-body,
.feature-text,
.section-note {
  color: var(--muted);
}

/*
 * 滚动显现：opacity 用 forwards 保持；位移动画结束后释放 transform，
 * 避免 fill-mode:both 锁死 transform 导致悬停动效失效。
 */
.reveal {
  opacity: 0;
  transform: none;
  transition: opacity 0.45s ease;
}
.reveal.visible {
  opacity: 1;
  animation:
    case-reveal-fade 0.55s ease forwards,
    case-reveal-up 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes case-reveal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes case-reveal-up {
  from { transform: translateY(24px); }
  to { transform: translateY(0); }
}

/* ========== 数据卡片动效 ========== */
@keyframes data-num-in {
  0% { opacity: 0; transform: translateY(8px) scale(0.88); }
  70% { transform: translateY(-2px) scale(1.06); }
  100% { opacity: 1; transform: none; }
}
@keyframes data-index-pop {
  0% { transform: scale(0.75); opacity: 0.4; }
  70% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes data-row-in {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

/* 痛点 / 通用编号卡 */
.grid-4 .card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}
.grid-4 .card.reveal.visible .card-num {
  animation: data-num-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}
.grid-4 .card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 55, 81, 0.32);
  box-shadow: 0 16px 32px rgba(217, 55, 81, 0.1);
}

/* 方案组成 info 卡 */
.compose-grid .info-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}
.compose-grid .info-card.reveal.visible .info-index {
  animation: data-index-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}
.compose-grid .info-card:hover {
  transform: translateY(-4px);
}
.compose-grid .info-card:hover .info-label {
  background: rgba(217, 55, 81, 0.16);
}

/* 核心功能 / 能力卡（客户价值区仍用 feature-grid） */
.feature-grid .feature-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}
.feature-grid .feature-card.reveal.visible .feature-index {
  animation: data-index-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
.feature-grid .feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 55, 81, 0.28);
  box-shadow: 0 12px 26px rgba(217, 55, 81, 0.08);
}
.feature-grid .feature-card:hover .feature-index {
  background: #d93751;
  color: #fff;
  border-color: #d93751;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* 核心功能实现：对齐参考稿 feature-item，并加强悬停动效 */
#capabilities .feature-impl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  #capabilities .feature-impl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
#capabilities .feature-item {
  background: #fff;
  border-radius: 8px;
  padding: 28px;
  border: 1px solid #eee;
  border-left: 4px solid #d93751;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}
#capabilities .feature-item:hover {
  transform: translateX(4px) translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 55, 81, 0.1);
}
#capabilities .feature-item .fi-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  background: #d93751;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}
#capabilities .feature-item:hover .fi-num {
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(217, 55, 81, 0.28);
}
#capabilities .feature-item.reveal.visible .fi-num {
  animation: data-index-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}
#capabilities .feature-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 10px;
  line-height: 1.4;
}
#capabilities .feature-item p {
  margin: 0;
  font-size: 14px;
  color: #666666;
  line-height: 1.9;
}

/* 部署方式卡 */
.adapt-grid .adapt-card {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease;
}
.adapt-grid .adapt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 55, 81, 0.28);
  box-shadow: 0 12px 26px rgba(217, 55, 81, 0.08);
}
.adapt-grid .adapt-card:hover .adapt-label {
  border-bottom-color: #d93751;
}

/* 成效对比表（数据行） */
.table-wrap {
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}
.table-wrap.is-in {
  box-shadow: 0 14px 34px rgba(217, 55, 81, 0.08);
  border-color: rgba(217, 55, 81, 0.18);
}
.compare-table tbody tr {
  transition:
    background 0.25s ease,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}
.table-wrap.is-in .compare-table tbody tr {
  animation: data-row-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.table-wrap.is-in .compare-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.table-wrap.is-in .compare-table tbody tr:nth-child(8) { animation-delay: 0.4s; }

.compare-table tbody tr:hover {
  background: rgba(217, 55, 81, 0.04);
  transform: translateX(4px);
  box-shadow: inset 3px 0 0 #d93751;
}
.compare-table tbody tr:hover td:nth-child(3) {
  color: #d93751;
}

/* 客户价值：卡片推动（平滑，避免冲突与卡顿） */
#value .value-push-grid {
  position: relative;
}
#value .value-push-grid .feature-value {
  --push-x: 0px;
  --push-y: 0px;
  --lift: 0px;
  --scale: 1;
  transform: translate3d(var(--push-x), var(--push-y), 0)
    translateY(var(--lift))
    scale(var(--scale));
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.48s ease,
    border-color 0.48s ease;
  will-change: auto;
  backface-visibility: hidden;
}
/* 覆盖通用 feature-card:hover 的 transform，避免两套位移打架 */
#value .value-push-grid .feature-value:hover,
#value .value-push-grid .feature-card:hover {
  transform: translate3d(var(--push-x), var(--push-y), 0)
    translateY(var(--lift))
    scale(var(--scale));
}
#value .value-push-grid .feature-value.is-active {
  --lift: -3px;
  --scale: 1.008;
  z-index: 3;
  border-color: rgba(217, 55, 81, 0.22);
  box-shadow: 0 10px 24px rgba(217, 55, 81, 0.08);
}
#value .value-push-grid .feature-value.is-pushed {
  z-index: 1;
}
#value .value-push-grid.is-interacting .feature-value {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .grid-4 .card,
  .compose-grid .info-card,
  .feature-grid .feature-card,
  .adapt-grid .adapt-card,
  .compare-table tbody tr,
  #value .value-push-grid .feature-value {
    transition: none;
    animation: none !important;
    transform: none !important;
  }
  .table-wrap.is-in .compare-table tbody tr {
    animation: none;
  }
  #value .value-push-grid .feature-value {
    --push-x: 0px !important;
    --push-y: 0px !important;
    --lift: 0px !important;
    --scale: 1 !important;
  }
}
