:root {
  --bg: #f3f8ff;
  --bg-alt: #dfeafb;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --line: rgba(55, 96, 162, 0.12);
  --line-strong: rgba(55, 96, 162, 0.26);
  --text: #11233d;
  --muted: #5f7390;
  --accent: #2c6dff;
  --accent-soft: rgba(44, 109, 255, 0.12);
  --glow: rgba(76, 138, 255, 0.26);
  --shadow: 0 24px 60px rgba(49, 79, 126, 0.14);
  --radius: 28px;
  --radius-sm: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 55px;
  min-width: 320px;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(126, 185, 255, 0.32), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(162, 205, 255, 0.32), transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #edf4fc 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(48, 94, 168, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 94, 168, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 85%);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width)); /* 这里的 48px 保证了左右至少有 24px 间距 */
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header,
.site-footer,
.trust-band,
.solution-card,
.platform-panel,
.impact-card,
.contact-card,
.hero-card,
.metric-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 8px;              /* 更改：从 16px 改为 8px，让 Bar 更靠上 */
  z-index: 1000;
  margin-top: -100px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 44px;    /* 更改：上下 padding 缩小到 10px，左右增加到 24px，让 Bar 更细长专业 */
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px); /* 建议添加：增加毛玻璃效果，更有高级感 */
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 2px; /* 减少内边距，让外框更紧凑 */
  background: rgba(44, 109, 255, 0.08);
  border: 1px solid rgba(44, 109, 255, 0.14);
  border-radius: 999px;
}

.lang-button {
  min-height: 28px;      /* 更改：从 36px 降到 28px */
  padding: 0 10px;       /* 更改：缩小左右间距 */
  font-size: 0.85rem;    /* 增加：设置更小的字号 */
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.lang-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #7fd3ff, #2c6dff);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4bb6ff, #2358ff);
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.30rem;
  white-space: nowrap;   /* 强制文字不换行 */
  display: block;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.0rem;
}
.brand-logo {
  height: 45px;  /* 在这里调整高度，数字越大图片越大 */
  width: auto;   /* 自动保持宽高比 */
  margin-right: 2%; /* 让图片和右侧文字保持一点间距 */
  vertical-align: middle; /* 确保图片和文字在水平线上对齐 */
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}

.site-nav a:hover,
.site-nav a.is-current,
.site-nav a:focus-visible,
.header-cta:hover,
.header-cta:focus-visible {
  color: var(--text);
}

.site-nav a.is-current {
  font-weight: 600;
}

/* 找到大约第 7 行的代码 */
.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  /* 修正：padding 少了 px 单位 */
  padding: 10px 20px; 
  border-radius: 999px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  
  /* --- 核心改动：设置一个更小的字号 --- */
  font-size: 0.85rem; /* 或者用 px：font-size: 14px; 原本可能是 1rem(16px) */
  font-weight: 500;   /* 如果字体变小后觉得太淡，可以适当调整粗细 */
}

.header-cta {
  font-size: 0.85rem !important; 
  /* 缩小内边距：上下 6px，左右 16px */
  padding: 6px 16px !important; 
  
  /* 保持原有基础样式 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(44, 109, 255, 0.08);
  border: 1px solid rgba(44, 109, 255, 0.18);
  transition: all 180ms ease;
  min-height: unset !important; /* 取消最小高度限制，让它更窄 */
}


.header-cta:hover,
.button:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  padding: 10px 14px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.hero {
  display: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px; /* 增加左右两块内容之间的间距 */
  align-items: center;
  /* 调整这里的上下边距，确保顶部导航栏下方有足够空间 */
  padding: 100px 100px 80px; 
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #2e70e6;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  content: "";
  width: 42px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  /* 1. 让容器跟页面一样大：去掉字数限制，允许它铺满左侧区域 */
  max-width: 100%;
  width: 100%;
  
  /* 2. 核心改动：把最大字号从 6.4rem 降到 4.5rem 左右 */
  /* 中文笔画复杂，6.4rem 在大多数笔记本屏幕上必然会换行或重叠 */
  font-size: clamp(2rem, 5vw, 4.2rem); 
  
  /* 3. 修正重叠：行高绝对不能小于 1.1，中文推荐 1.2 */
  line-height: 1.2; 
  
  /* 4. 视觉优化 */
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
  letter-spacing: -0.01em; /* 稍微紧凑但不过分 */
  word-break: keep-all;    /* 尽量保持词组不被强行拆开换行 */
}

.hero-text,
.section-heading p,
.platform-copy p,
.contact-copy p,
.solution-card p,
.impact-card p,
.impact-card span,
.feature-list span,
.hero-card-note span,
.hero-card-note p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 56ch;
  margin: 24px 0 0;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}


.button-primary {
  background: linear-gradient(135deg, #7fd3ff, #2c6dff);
  color: #ffffff;
  font-weight: 700;
}

.button-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.62);
}

.hero-stats {
  display: grid;
  /* 强制分为 4 列，每列占 1 份等宽空间 */
  grid-template-columns: repeat(4, 1fr); 
  gap: 20px; 
  margin: 40px 0 0;
  width: 100%;
}

/* 针对手机端的适配：如果屏幕太窄，4 列会挤坏，建议切换回 2 列或 1 列 */
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr); /* 手机端每行 2 个 */
  }
}

.hero-stats div {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(242, 247, 255, 0.92));
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hero-stats dt {
  font-size: 2.4rem;
  font-weight: 700;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center; /* 让图片靠右对齐 */
  align-items: center;
  min-height: 560px;
}

.hero-card {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 245, 255, 0.94));
  box-shadow: var(--shadow);
}

.hero-card-main {
  /* 3. 取消绝对定位和强制拉伸 */
  /* inset: 20px 0 78px 36px; */
  position: relative; /* 改回 relative */
  
  /* 4. 核心：控制整体缩小一点 */
  width: 1000%;          /* 占据右侧区域的 90% 宽度，达到稍微缩小的效果 */
  max-width: 1000px;    /* 限制最大宽度，防止大屏下过大 */
  margin-right: 0;     /* 靠右 */
  
  /* 5. 确保图片显示完整 */
  overflow: hidden;    /* 保持圆角裁剪 */
}

.hero-card-main::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(219, 232, 249, 0.54));
}

/* =========================================
   强制统一两张悬浮小卡片的大小
   ========================================= */

/* 1. 统一基础容器样式 */
.hero-card-note,
.hero-card-pulse {
  /* 强制锁定宽度，确保两个框一模一样宽 */
  width: 260px !important; 
  min-width: 260px !important;
  
  /* 强制统一圆角 */
  border-radius: 24px !important; 
  
  /* 强制统一内边距 */
  padding: 24px !important; 
  
  /* 定位与背景 */
  position: absolute;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(55, 96, 162, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  
  /* 布局方式：让内部元素垂直排列 */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* 2. 统一标题（加粗部分）的样式 */
.hero-card-note strong,
.hero-card-pulse strong {
  display: block;
  font-size: 1.15rem !important;
  line-height: 1.3;
  margin: 4px 0;
  color: #11233d;
  font-weight: 700;
}

/* 3. 统一描述文本（普通字）的样式 */
.hero-card-note p,
.hero-card-note span,
.hero-card-pulse p,
.hero-card-pulse span {
  font-size: .88rem !important;
  color: #5f7390 !important;
  line-height: 1.5;
  margin: 0;
}

/* 4. 分别设置它们的位置，确保错落有致 */

/* 右上角卡片 */
.hero-card-note {
  top: -20px;
  right: -40px;
}

/* 左下角卡片 */
.hero-card-pulse {
  bottom: 40px;
  left: -40px;
}
.note-dot {
  margin-bottom: 8px;
}
.note-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6dd9ff;
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.2s infinite;
}
/* 如果左下角有那个蓝点，给蓝点一点间距 */
.pulse-dot {
  margin-bottom: 8px;
}
.pulse-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #6dd9ff;
  box-shadow: 0 0 0 0 var(--glow);
  animation: pulse 2.2s infinite;
}

.trust-band,
.site-footer {
  margin-top: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 5px solid var(--line);
  border-radius: var(--radius);
}

.trust-band p,
.site-footer span {
  margin: 0;
  color: var(--muted);
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  color: rgba(17, 35, 61, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
}

.section {
  padding: 110px 0 0;
}

.page-hero {
  /* 恢复为 grid 或 flex 布局，但不居中 */
  display: block; 
  text-align: left; /* 确保整体内容靠左 */
  padding: 100px 80px 60px; /* 根据需要调整边距 */
}

.page-hero h1 {
  /* 1. 宽度设为 100%，允许在容器内换行 */
  width: 100%;
  max-width: 1000px; /* 限制一个最大宽度，防止单行文字过长 */
  
  /* 2. 压缩行间距：中文推荐 1.1 到 1.2 之间，看起来更紧凑 */
  line-height: 1.15; 
  
  /* 3. 字体与大小：保持你喜欢的衬线体 */
  font-size: clamp(2rem, 5vw, 4.2rem); 
  font-family: "Iowan Old Style", "Palatino Linotype", serif;
  font-weight: 600;
  
  /* 4. 间距修正 */
  margin: 0 0 20px 0; /* 确保没有 auto margin 导致居中 */
  letter-spacing: -0.02em; /* 稍微紧缩字间距，更有高级感 */
  
  /* 5. 强制换行控制 */
  word-break: break-all; /* 允许在必要时断开 */
  white-space: normal;   /* 确保正常换行 */
}

.page-intro {
  margin: 24px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.page-section-tight {
  padding-top: 42px;
}

.section-heading {
  max-width: 720px;
}

.section h2,
.contact-copy h2 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
}

.section-heading p:last-child,
.platform-copy p:last-of-type {
  margin-top: 18px;
}

.solution-grid,
.impact-grid,
.career-grid,
.overview-grid {
  display: grid;
  gap: 22px;

  margin-top: 34px;
}

.solution-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));

}

.solution-card,
.impact-card,
.career-card,
.overview-card,
.contact-card,
.platform-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.solution-card {
  padding: 28px;
}

.overview-grid {
  margin-top: 80px;
  
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-card {
  display: block;
  padding: 28px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.overview-card:hover,
.overview-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(44, 109, 255, 0.24);
}

.overview-card h3 {
  margin: 14px 0 10px;
  font-size: 1.4rem;
}

.overview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.card-index,
.impact-label {
  color: #2e70e6;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.solution-card h3,
.impact-card h3 {
  margin: 14px 0;
  font-size: 1.55rem;
}

.solution-card ul {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: #203654;
}

.solution-card li + li {
  margin-top: 10px;
}

.solution-card li::before {
  content: "•";
  margin-right: 10px;
  color: #2e70e6;
}

.platform-section {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 26px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.feature-list div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-list strong,
.metric-card strong,
.impact-card strong {
  display: block;
  font-size: 1.2rem;
}

.platform-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.metric-card {
  padding: 22px;
  background: rgba(250, 252, 255, 0.92);
  border: 1px solid rgba(55, 96, 162, 0.12);
  border-radius: 22px;
}

.metric-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.metric-card strong {
  font-size: 2.4rem;
}

.metric-card.wide {
  grid-column: 1 / -1;
}

.metric-card ol {
  margin: 0;
  padding-left: 18px;
  color: #203654;
  line-height: 1.8;
}

.impact-grid {
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
}

.impact-card {
  padding: 26px;
}

.career-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.career-card {
  padding: 28px;
}

.career-card h3 {
  margin: 14px 0;
  font-size: 1.45rem;
}

.career-card p {
  color: var(--muted);
  line-height: 1.7;
}

.career-card span {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #203654;
  background: rgba(44, 109, 255, 0.08);
  border: 1px solid rgba(44, 109, 255, 0.14);
}

.impact-card-large {
  background:
    radial-gradient(circle at top right, rgba(92, 179, 255, 0.18), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

.impact-card strong {
  margin: 12px 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 40px;
}

.contact-card {
  display: grid;
  gap: 16px;
  padding: 28px;
}

.contact-card label {
  display: grid;
  gap: 8px;
  color: #203654;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(55, 96, 162, 0.12);
  border-radius: 18px;
}

.contact-card input::placeholder,
.contact-card textarea::placeholder {
  color: rgba(178, 195, 221, 0.75);
}

.contact-card button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.site-footer {
  margin-top: 28px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(109, 217, 255, 0.45);
  }
  75% {
    box-shadow: 0 0 0 18px rgba(109, 217, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(109, 217, 255, 0);
  }
}

@media (max-width: 1040px) {
  .hero,
  .platform-section,
  .impact-grid,
  .career-grid,
  .overview-grid,
  .contact-section,
  .solution-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-card-large {
    grid-column: 1 / -1;
  }

  .hero-visual {
    min-height: 500px;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    border-radius: 28px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-stats,
  .platform-panel,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-card-main {
    inset: 18px 0 74px 0;
  }

  .hero-card-note {
    right: 12px;
  }

  .trust-band,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    max-width: none;
  }

  .hero-card-note {
    width: calc(100% - 40px);
    top: 10px;
  }

  .hero-card-pulse {
    right: 14px;
    left: 14px;
  }

  .button,
  .contact-card button {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
.card-more-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 3%;
  padding: 40 1;
  color: #007aff; /* 链接颜色 */
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-more-btn .arrow {
  margin-left: 12px;
  transition: transform 0.3s ease;
}

/* 鼠标悬停时的动画效果：箭头向右滑动 */
.card-more-btn:hover {
  color: #0056b3;
}

.card-more-btn:hover .arrow {
  transform: translateX(5px);
}
/* 确保 Logo 行是水平排列、居中，且图片间有间距——home page */
.logo-row {
  display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中（这很重要，因为 Logo 形状不同） */
  flex-wrap: wrap;         /* 如果屏幕太小，允许自动换行 */
  gap: 20px;               /* 调整 Logo 之间的间距 */
  padding: 30px 0;
}

/* 统一控制 Logo 图片的大小 */
.trust-logo {
  height: 35px;            /* 统一高度。你可以根据需要调大或调小，比如 40px, 30px */
  width: auto;             /* 宽度自动等比例缩放，防止变形 */
  display: block;
  
  /* 可选：如果有些 Logo 颜色太深，可以加一个半透明效果，
     看起来更低调优雅，鼠标悬停时变清晰 */
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

/* 鼠标悬停时的效果 */
.trust-logo:hover {
  opacity: 1;
}

.site-footer {
  display: flex;
  flex-direction: row; /* 左右分布 */
  justify-content: space-between;
  align-items: flex-start; /* 顶部对齐 */
  padding: 40px 28px; /* 增加上下内边距 */
  flex-wrap: wrap; /* 手机端自动换行 */
  gap: 30px;
}

.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #444;
}

.service-time {
  font-size: 0.8rem;
  color: #888; /* 时间描述颜色浅一点，显得更有层次 */
}

.footer-contact a {
  color: var(--primary); /* 使用你项目的主色调 */
  text-decoration: none;
}

/* 手机端适配：变成垂直堆叠 */
@media (max-width: 768px) {
  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* --- 案例页面容器布局 --- */
.cases-container {
  display: flex;
  max-width: var(--max-width); /* 沿用您 index.html 的宽度变量 */
  margin: 80px auto;
  padding: 0 40px;
  gap: 100px; /* 拉开侧边栏与内容的呼吸感 */
}

/* --- 商汤式：粘性侧边导航 --- */
.cases-sidebar {
  width: 200px;
  flex-shrink: 0;
  position: sticky;
  top: 120px; /* 避开您的 site-header */
  height: fit-content;
}

.cases-nav {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line); /* 极细底线 */
}

.nav-item {
  padding: 16px 0 16px 24px;
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: -1px;
  border-left: 2px solid transparent;
}

.nav-item.active {
  color: var(--text);
  font-weight: 600;
  border-left: 2px solid #0066ff; /* 品牌蓝色，类似商汤的强调色 */
}

/* --- 案例卡片网格 --- */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  width: 100%;
}

/* --- 商汤风格卡片设计 --- */
.case-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 40px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 102, 255, 0.1);
}

/* 控制 Logo 容器的高度和間距 */
.card-header {
  height: 60px;          /* 固定高度讓不同卡片排版整齊 */
  display: flex;
  align-items: center;   /* 垂直置中 */
  margin-bottom: 32px;   /* 與下方標題拉開距離 */
}

/* 確保 Logo 圖片縮放得當 */
.case-logo {
  max-height: 100%;      /* 高度不超過容器 */
  max-width: 180px;      /* 限制最大寬度防止圖片過大 */
  object-fit: contain;   /* 保持比例，不變形 */
  filter: grayscale(100%); /* 選項：如果你想要商湯那種灰階 Logo 風格 */
  opacity: 0.8;          /* 選項：讓 Logo 稍微淡一點，Hover 時再變亮 */
  transition: all 0.3s ease;
}
/* 1. 確保 Learn More 文字和箭頭初始顏色一致（例如灰色或黑色） */
.more-link {
  color: var(--text); /* 或者你設定的具體顏色 */
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.3s ease; /* 顏色平滑過渡 */
}

/* 2. 當滑鼠移到卡片上時，只有箭頭或連結文字變藍 */
.case-card:hover .more-link {
  color: #0066ff; /* 只有 Learn More 區域變藍 */
}

/* 3. 修正你之前的拼寫錯誤（ccase -> case）並處理箭頭位移 */
.case-card:hover .arrow {
  transform: translateX(5px);
  color: #0066ff; /* 確保箭頭也變藍 */
}

/* 鼠標懸停時 Logo 變亮 */
.case-card:hover .case-logo {
  filter: grayscale(0%);
  opacity: 1;
}
.hero h1 {
  /* 核心修改：将行高增加到 1.25 到 1.3 之间，这是中文排版的舒适区 */
  line-height: 1.3 !important; 
  
  /* 核心修改：字间距不要设为负值，建议设为 0 或微正值 */
  letter-spacing: 0.02em !important; 
  
  /* 缩小一点字号，防止在容器内过挤 */
  font-size: clamp(2.5rem, 6vw, 4.2rem) !important;
  
  /* 确保容器宽度充足 */
  max-width: 100% !important;
  margin-bottom: 24px;
}
.case-card h3 {
  /* 增加标题与 Logo 以及下方描述的间距 */
  margin: 20px 0 12px 0 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.01em !important;
}

.case-card p {
  /* 增加段落行高，防止多行文本粘连 */
  line-height: 1.8 !important; 
  /* 增加段落与底部链接的距离 */
  margin-bottom: 30px !important;
}
.card-footer {
  display: flex;
  align-items: center;
  gap: 15px; /* 增加小蓝点、标签和链接之间的水平间距 */
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.tag {
  /* 给标签内部增加一点留白 */
  padding: 4px 12px !important;
  /* 强制不换行 */
  white-space: nowrap;
}
/* 初始隐藏所有案例组，只有带有 active 类的才显示 */
.cases-group {
  animation: fadeIn 0.5s ease; /* 添加一个淡入动画让切换更平滑 */
}

.cases-group.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 容器边距 */
.tab-section {
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* 顶部导航样式 */
.tab-header {
  display: flex;
  justify-content: flex-start; /* 或者 center */
  border-bottom: 1px solid #eee;
  margin-bottom: 40px;
}

.tab-item {
  padding: 15px 30px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  position: relative;
  transition: color 0.3s ease;
}

/* 激活状态的蓝色下划线 */
.tab-item.active {
  color: #0052D9;
  font-weight: 600;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #0052D9;
  animation: slideIn 0.3s ease forwards;
}

/* 内容面板切换 */
.tab-panel {
  animation: fadeIn 0.5s ease;
}

/* 网格容器 */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 自动适配宽度 */
  gap: 30px;
  margin-top: 40px;
}

/* 单个卡片样式 */
.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* 内容左对齐 */
}

/* 悬停效果：轻微上浮和阴影 */
.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #0052D9; /* 悬停时边框变蓝 */
}

/* 图标样式 */
.card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}
.card-icon img {
  width: 100%;
  object-fit: contain;
}

/* 产品图片样式 */
.card-image {
  width: 100%;
  height: 280px;
  margin-top: 0; /* 确保上方没有额外推开距离 */
  margin-bottom: 16px; /* 图片与下方文字标题的间距 */
  border-radius: 8px;
  overflow: hidden;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 确保图片充满容器且不变形 */
}

/* 文字部分 */
.card-info h4 {
  font-size: 1.25rem;
  color: #1b1f23;
  margin-bottom: 12px;
}

.card-info p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}