:root {
  --home-blue: #0867ff;
  --home-ink: #081735;
  --home-muted: #63708a;
  --home-border: #dce6f5;
  --home-page: #f7faff;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  color: var(--home-ink);
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

.hero {
  height: var(--home-desktop-hero-height);
  min-height: var(--home-desktop-hero-height);
  overflow: hidden;
  background: #f7fbff;
  border: 0;
}

.hero-inner {
  width: min(100%, var(--home-desktop-hero-inner-max-width));
  height: var(--home-desktop-hero-height);
  min-height: var(--home-desktop-hero-height);
  margin: 0 auto;
  padding: var(--home-desktop-hero-copy-top) var(--home-desktop-hero-copy-left);
  display: grid;
  grid-template-columns: var(--home-desktop-hero-copy-width) var(--home-desktop-visual-width);
  align-items: center;
  gap: calc(var(--home-desktop-visual-left) - var(--home-desktop-hero-copy-left) - var(--home-desktop-hero-copy-width));
}

.hero-copy { min-width: 0; height: var(--home-desktop-hero-copy-height); padding: 0; }
.hero-title-box { min-width: 0; }

.hero-title {
  margin: 0;
  color: #081735;
  font-size: var(--home-desktop-title-size);
  font-weight: 800;
  letter-spacing: 0;
  line-height: var(--home-desktop-title-line-height);
}

.hero-title-line { white-space: nowrap; }
.hero-title .accent { color: #00a1e4; }

.hero-subtitle {
  max-width: var(--home-desktop-hero-copy-width);
  margin: var(--home-desktop-title-subtitle-gap) 0 0;
  color: #27364f;
  font-size: var(--home-desktop-subtitle-size);
  line-height: var(--home-desktop-subtitle-line-height);
}

.hero-visual {
  width: var(--home-desktop-visual-width);
  height: var(--home-desktop-visual-height);
  align-self: center;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-visual img {
  width: var(--home-desktop-visual-width);
  height: var(--home-desktop-visual-height);
  max-height: none;
  object-fit: contain;
  object-position: right center;
}

.industry-tabs-section {
  overflow: visible;
  border: 0;
  background: #fff;
}

.industry-tabs-inner {
  width: min(100% - var(--home-desktop-responsive-gutter), var(--home-desktop-content-max-width));
  height: var(--home-desktop-tabs-height);
  min-height: var(--home-desktop-tabs-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--home-desktop-tab-gap);
}

.industry-tab {
  flex: 0 0 auto;
  height: var(--home-desktop-tab-height);
  border: 1px solid transparent;
  border-radius: var(--home-desktop-tab-radius);
  padding: 0 var(--home-desktop-tab-padding-x);
  display: inline-flex;
  align-items: center;
  gap: var(--home-desktop-tab-gap);
  color: #27364f;
  background: #fff;
  cursor: pointer;
  font-size: var(--home-desktop-tab-font-size);
  font-weight: 500;
  line-height: var(--home-desktop-tab-line-height);
  white-space: nowrap;
}

.industry-tab img { width: var(--home-desktop-tab-icon-size); height: var(--home-desktop-tab-icon-size); object-fit: contain; }
.industry-tab-active { border-color: #d8e9ff; color: var(--home-blue); background: #eef5ff; font-weight: 500; }

.cases-section { background: #fff; }

.cases-inner {
  width: min(100% - var(--home-desktop-responsive-gutter), var(--home-desktop-content-max-width));
  margin: 0 auto;
  padding: var(--home-desktop-cases-padding-top) 0 var(--home-desktop-cases-padding-bottom);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, var(--home-desktop-card-width));
  column-gap: var(--home-desktop-grid-gap-x);
  row-gap: var(--home-desktop-grid-gap-y);
  justify-content: start;
}

.case-card {
  position: relative;
  min-width: 0;
  height: var(--home-desktop-card-height);
  min-height: var(--home-desktop-card-height);
  padding: var(--home-desktop-card-padding);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--home-border);
  border-radius: var(--home-desktop-card-radius);
  color: inherit;
  background: #fff;
  box-shadow: none;
}

.case-card-linkable { cursor: pointer; transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.case-card-linkable:hover,
.case-card-linkable:focus-visible { border-color: #9abdf7; box-shadow: 0 8px 20px rgba(8, 103, 255, 0.1); outline: none; transform: translateY(-2px); }
.case-card-disabled { opacity: 0.72; }

.case-card-top {
  min-height: var(--home-desktop-card-top-height);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.case-icon-wrap {
  width: var(--home-desktop-card-icon-size);
  height: var(--home-desktop-card-icon-size);
  flex: 0 0 var(--home-desktop-card-icon-size);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
}

.case-icon { width: var(--home-desktop-card-icon-size); height: var(--home-desktop-card-icon-size); object-fit: contain; }

.case-featured-badge {
  flex: 0 0 auto;
  min-width: 56px;
  height: 23px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  background: #fff7ed;
  line-height: 15px;
}

.case-featured-flame { font-size: 11px; line-height: 15px; }
.case-featured-label { font-size: 12px; font-weight: 500; line-height: 15px; }

.case-title {
  min-width: 0;
  position: absolute;
  top: var(--home-desktop-card-title-top);
  left: var(--home-desktop-card-title-left);
  margin: 0;
  color: #081735;
  font-size: var(--home-desktop-card-title-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: var(--home-desktop-card-title-line-height);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-card-summary {
  position: absolute;
  top: var(--home-desktop-card-summary-top);
  right: var(--home-desktop-card-summary-inset);
  left: var(--home-desktop-card-summary-inset);
  height: var(--home-desktop-card-summary-height);
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #63708a;
  font-size: var(--home-desktop-card-summary-size);
  line-height: var(--home-desktop-card-summary-line-height);
}

.case-bullets {
  position: absolute;
  top: var(--home-desktop-card-bullets-top);
  left: var(--home-desktop-card-bullets-left);
  min-height: var(--home-desktop-card-bullets-height);
  margin: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  overflow: hidden;
}

.case-bullet {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  padding-left: 0;
  overflow: hidden;
  color: #73809a;
  font-size: var(--home-desktop-card-bullet-size);
  line-height: var(--home-desktop-card-bullet-line-height);
}

.case-bullet::before {
  content: none;
}

.case-bullet-dot {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--home-blue);
}

.case-bullet-text {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-link {
  position: absolute;
  right: var(--home-desktop-card-cta-right);
  bottom: var(--home-desktop-card-cta-bottom);
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--home-blue);
  font-size: var(--home-desktop-card-cta-size);
  font-weight: 600;
  line-height: var(--home-desktop-card-cta-line-height);
}

.case-link-disabled { color: #8b97ab; }
.case-link-arrow { font-size: 18px; line-height: 16px; }

.case-card-actions {
  position: absolute;
  right: var(--home-desktop-card-cta-right);
  bottom: calc(var(--home-desktop-card-cta-bottom) - 9px);
  left: var(--home-desktop-card-cta-right);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.case-action {
  height: 26px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #c9dcfb;
  border-radius: 6px;
  color: #0867ff;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  white-space: nowrap;
}

.case-action-primary { color: #fff; border-color: #0867ff; background: #0867ff; }
.case-action:hover { border-color: #86b4ff; box-shadow: 0 3px 10px rgba(8, 103, 255, 0.12); }

.empty-state {
  margin: 0;
  padding: 48px 16px;
  border: 1px dashed #cbd9eb;
  border-radius: 10px;
  color: #71809b;
  background: #fff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

@media (min-width: 1440px) {
  .hero-inner {
    position: relative;
    width: var(--home-desktop-hero-inner-max-width);
    height: var(--home-desktop-hero-height);
    min-height: var(--home-desktop-hero-height);
    margin: 0 auto;
    padding: 0;
    display: block;
  }

  .hero-copy {
    position: absolute;
    top: var(--home-desktop-hero-copy-top);
    left: var(--home-desktop-hero-copy-left);
    width: var(--home-desktop-hero-copy-width);
    height: var(--home-desktop-hero-copy-height);
    display: flex;
    flex-direction: column;
    gap: var(--home-desktop-title-subtitle-gap);
  }

  .hero-title-box {
    height: var(--home-desktop-title-box-height);
    flex: 0 0 var(--home-desktop-title-box-height);
  }

  .hero-subtitle {
    max-width: var(--home-desktop-hero-copy-width);
    margin: 0;
  }

  .hero-visual {
    position: absolute;
    top: 0;
    left: var(--home-desktop-visual-left);
    width: var(--home-desktop-visual-width);
    height: var(--home-desktop-visual-height);
  }

  .hero-visual img {
    width: var(--home-desktop-visual-width);
    height: var(--home-desktop-visual-height);
  }
}

@media (max-width: 1439px) and (min-width: 1181px) {
  .hero-inner {
    width: min(100% - var(--home-desktop-responsive-gutter), var(--home-desktop-content-max-width));
    padding: var(--home-desktop-hero-copy-top) 0;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    gap: var(--home-desktop-responsive-gap);
  }

  .hero-visual,
  .hero-visual img {
    width: 100%;
  }

  .industry-tabs-inner,
  .cases-inner {
    width: min(100% - var(--home-desktop-responsive-gutter), var(--home-desktop-content-max-width));
  }

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

@media (max-width: 1120px) and (min-width: 861px) {
  .hero-inner,
  .industry-tabs-inner,
  .cases-inner { width: min(100% - var(--home-desktop-tablet-gutter), var(--home-desktop-tablet-width)); }
  .hero-inner { width: min(100% - var(--home-desktop-tablet-gutter), var(--home-desktop-tablet-width)); padding: var(--home-desktop-hero-copy-top) 0; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); }
  .hero-visual,
  .hero-visual img { width: 100%; }
  .case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .hero { height: auto; min-height: 0; background: #fff; }
  .hero-inner { width: 100%; height: auto; min-height: 0; padding: 20px 16px 0; grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hero-copy { height: auto; padding: 0; display: flex; flex-direction: column; gap: 14px; }
  .hero-title-box { min-height: 62px; }
  .hero-title { font-size: 24px; line-height: 30px; }
  .hero-subtitle { min-height: 42px; margin: 0; font-size: 13px; line-height: 20px; }
  .hero-visual { width: 100%; height: auto; aspect-ratio: 179 / 100; justify-content: center; overflow: hidden; border-radius: 8px; background: transparent; }
  .hero-visual img { width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center; }

  .industry-tabs-section { margin-top: 14px; }
  .industry-tabs-inner { width: 100%; height: 42px; min-height: 42px; padding: 0 16px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .industry-tabs-inner::-webkit-scrollbar { display: none; }
  .industry-tab { min-width: 120px; height: 40px; border: 1px solid transparent; border-radius: 12px; padding: 0 11px; gap: 6px; font-size: 14px; line-height: 18px; background: #fff; }
  .industry-tab img { width: 20px; height: 20px; }
  .industry-tab-active { min-width: 106px; border-color: #d8e9ff; background: #eef5ff; }

  .cases-inner { width: 100%; padding: 14px 16px 32px; }
  .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .case-card { height: auto; min-height: clamp(213px, calc(42.5vw + 47.25px), 230px); padding: 14px; border-radius: 14px; }
  .case-card-top { min-height: 32px; }
  .case-icon-wrap { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; }
  .case-icon { width: 32px; height: 32px; }
  .case-featured-badge { min-width: 56px; height: 21px; padding: 2px 6px; }
  .case-featured-flame { font-size: 10px; }
  .case-featured-label { font-size: 11px; }
  .case-title { position: static; margin-top: 10px; font-size: 16px; line-height: 22px; }
  .case-card-summary { position: static; height: auto; min-height: 36px; margin-top: 7px; font-size: 12px; line-height: 18px; }
  .case-card-summary { max-height: 36px; overflow: hidden; }
  .case-bullets { position: static; min-height: 34px; margin-top: 8px; gap: 2px; }
  .case-bullet { font-size: 11px; line-height: 16px; }
  .case-bullet-dot { margin-top: 6px; }
  .case-link { position: static; margin-top: auto; padding-top: 9px; font-size: 14px; line-height: 20px; }
  .case-card-actions { position: static; margin-top: auto; padding-top: 9px; gap: 6px; }
  .case-action { min-width: 0; height: 30px; padding: 0 4px; flex: 1 1 0; font-size: 11px; }
}

@media (max-width: 374px) {
  .case-grid { grid-template-columns: minmax(0, 1fr); }
  .case-title { overflow: visible; text-overflow: clip; white-space: normal; }
}
