/* 产品落地页公共样式：IM / 邮箱 / 知识宝 / 任务 / 审批 / 日程 等共用 */
:root {
  --blue: #165dff;
  --ink: #333;
  --muted: #595959;
  --surface: #f8f9fd;
  --hero: #eef2ff;
  --content: 1280px;
  /* 随视口缩放的左右边距 */
  --page-gutter: clamp(40px, 6vw, 108px);
  --grad: linear-gradient(98deg, #0551ff 11%, #87bbff 92%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.container {
  width: min(var(--content), calc(100% - 2 * var(--page-gutter)));
  margin-inline: auto;
}
.section-title { text-align: center; font-size: 42px; line-height: 1.4; }

/* Hero */
.hero { height: 680px; background: var(--hero); }
.hero-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
  padding-top: 135px;
}
.hero-copy { position: relative; min-width: 0; height: 500px; padding-top: 33px; }
.hero h1 { font-size: 48px; line-height: 1.4; }
.hero-copy > p { margin-top: 56px; font-size: 24px; line-height: 1.4; font-weight: 500; }
.hero-actions { display: flex; gap: 46px; margin-top: 112px; }
.button,
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 192px;
  height: 66px;
  border: 2px solid var(--blue);
  border-radius: 36px;
  color: var(--blue);
  font-size: 24px;
  white-space: nowrap;
}
.button.primary,
.hero-button.primary { color: #fff; background: var(--blue); }
.hero-visual {
  min-width: 0;
  width: 100%;
  max-width: 770px;
  height: auto;
  justify-self: end;
}
.hero-visual img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  object-position: center top;
}

/* Pain */
.pain { height: 646px; padding-top: 88px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.pain-card {
  position: relative;
  height: 379px;
  overflow: hidden;
  padding: 32px;
  border-radius: 16px;
  background: radial-gradient(circle at 0 100%, #e8e8e8 0, #fff 72%);
  box-shadow: 0 0 5px rgba(0, 0, 0, .1);
}
.pain-card h3 { position: relative; z-index: 1; font-size: 24px; line-height: 1.6; }
.pain-card p {
  position: relative;
  z-index: 1;
  width: 235px;
  margin-top: 46px;
  color: #666;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 500;
}
.pain-card img {
  position: absolute;
  right: -18px;
  bottom: -16px;
  width: 190px;
  height: 190px;
  object-fit: cover;
  opacity: .4;
  filter: grayscale(1);
  mix-blend-mode: luminosity;
}

/* Advantages */
.advantages { height: 531px; padding-top: 48px; background: #fff; }
.adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 94px;
  row-gap: 68px;
  margin-top: 48px;
}
.adv-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
  min-height: 120px;
}
.adv-art { position: relative; width: 120px; height: 120px; overflow: hidden; flex-shrink: 0; }
.adv-art img { width: 120px; height: 120px; object-fit: contain; }
.adv-item h3 { margin-bottom: 24px; font-size: 24px; line-height: 1.4; }
.adv-item p { color: var(--muted); font-size: 16px; line-height: 1.4; font-weight: 500; }

/* Feature rows */
.features { padding: 128px 0; }
.feature-list { display: flex; flex-direction: column; gap: 128px; }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 68px;
  align-items: center;
  min-height: 500px;
}
.feature-row--flip {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
}
.feature-row--flip .feature-media { order: 2; }
.feature-media {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
}
.feature-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.feature-copy { min-width: 0; }
.feature-copy h2 { margin-bottom: 48px; font-size: 42px; line-height: 1.4; }
.feature-copy p {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 500;
}
.feature-copy.align-right { text-align: right; }
.feature-actions { display: flex; gap: 32px; margin-top: 48px; }
.align-right .feature-actions { justify-content: flex-end; }
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 136px;
  height: 40px;
  border: 1px solid var(--blue);
  border-radius: 41px;
  color: var(--blue);
  font-size: 18px;
  white-space: nowrap;
}
.small-button.primary { color: #fff; border: 0; background: var(--grad); }

/* Case */
.case-section { height: 729px; }
.case-card {
  display: grid;
  grid-template-columns: 1fr 424px;
  column-gap: 66px;
  row-gap: 20px;
  height: 601px;
  padding: 42px;
  border-radius: 24px;
  background: #fff;
}
.case-heading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.case-heading h2 { font-size: 36px; line-height: 1.6; }
.more {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 24px;
  line-height: 1.6;
  white-space: nowrap;
}
.case-copy { display: flex; min-width: 0; flex-direction: column; }
.client-name {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
}
.client-name img { width: 79px; height: 44px; object-fit: contain; }
.client-mark { font-weight: 700; letter-spacing: .02em; }
.case-description { width: 634px; color: #303033; font-size: 16px; line-height: 1.6; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 88px;
  margin-top: auto;
  padding-left: 23px;
}
.metric { text-align: center; }
.metric b {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  color: var(--blue);
  font-family: DIN, "Arial Narrow", sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.metric-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 3px;
  color: inherit;
  line-height: 0;
}
.metric-arrow svg {
  display: block;
  width: 10px;
  height: 18px;
}
.metric-arrow--down {
  transform: rotate(180deg);
}
.metric-value { line-height: 1; }
.metric > span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
}
.case-photo {
  align-self: start;
  justify-self: end;
  width: 424px;
  height: 424px;
  object-fit: cover;
  border-radius: 12px;
}

@media (max-width: 1599px) {
  /* 小屏疏密度：介于 80%~90% 缩放之间 */
  :root {
    --content: 1120px;
    --page-gutter: clamp(48px, 7vw, 112px);
  }
  .section-title { font-size: 36px; }
  .hero-inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(28px, 3.5vw, 56px);
    padding-top: 120px;
  }
  .hero-copy { height: auto; min-height: 420px; padding-top: 28px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p { margin-top: 48px; font-size: 20px; }
  .hero-actions { gap: 32px; margin-top: 84px; }
  .button,
  .hero-button {
    width: 168px;
    height: 56px;
    font-size: 20px;
  }
  .pain-card h3 { font-size: 20px; }
  .pain-card p { font-size: 15px; width: auto; max-width: 235px; }
  .adv-item h3 { font-size: 20px; margin-bottom: 18px; }
  .adv-item p { font-size: 15px; }
  .feature-copy h2 { margin-bottom: 36px; font-size: 36px; }
  .feature-copy p { font-size: 20px; margin-bottom: 20px; }
  .feature-actions { gap: 28px; margin-top: 40px; }
  .small-button { width: 128px; height: 38px; font-size: 16px; }
  .case-heading h2 { font-size: 32px; }
  .client-name { font-size: 20px; }
  .case-description { font-size: 15px; }
  .metrics b { font-size: 28px; }
  .metrics span { font-size: 15px; }
}

@media (max-width: 1439px) {
  :root { --page-gutter: clamp(44px, 6.5vw, 100px); }
  .hero-inner {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(20px, 2.5vw, 40px);
  }
  .hero-visual, .hero-visual img { width: 100%; }
  .hero h1 { font-size: 40px; }
  .hero-copy > p { font-size: 19px; }
  .button,
  .hero-button {
    width: 160px;
    height: 54px;
    font-size: 19px;
  }
  .pain-grid { gap: 20px; }
  .feature-row,
  .feature-row--flip { grid-template-columns: 53% 1fr; gap: 42px; }
  .feature-copy h2 { font-size: 34px; }
  .feature-copy p { font-size: 19px; }
  .case-card { grid-template-columns: minmax(0, 1fr) 35%; column-gap: 36px; padding: 32px; }
  .case-description { width: auto; }
  .case-photo { width: 100%; height: auto; }
  .metrics { gap: 24px; padding-left: 0; }
}

@media (max-width: 1023px) {
  :root { --page-gutter: clamp(24px, 5vw, 48px); }
  .hero { height: auto; padding: 44px 0 70px; }
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-top: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > h1 {
    order: 1;
    width: 100%;
    text-align: center;
  }
  .hero-copy > p {
    order: 2;
    width: 100%;
    max-width: 650px;
    margin: 24px auto 0;
    text-align: center;
  }
  .hero-visual {
    order: 3;
    width: min(770px, 100%);
    height: auto;
    margin: 28px auto 0;
  }
  .hero-visual img { width: 100%; height: auto; }
  .hero-actions {
    order: 4;
    justify-content: center;
    margin-top: 28px;
  }
  .pain, .advantages, .features, .case-section { height: auto; padding: 72px 0; }
  .pain-grid, .adv-grid { grid-template-columns: 1fr 1fr; }
  .advantages { padding-bottom: 82px; }
  .features { padding-top: 88px; }
  .feature-list { gap: 88px; }
  .feature-row,
  .feature-row--flip { grid-template-columns: 1fr 1fr; gap: 42px; min-height: 0; }
  .feature-copy h2 { margin-bottom: 28px; font-size: 34px; }
  .feature-copy p { font-size: 19px; }
  .case-card { grid-template-columns: 1fr 35%; height: auto; min-height: 560px; }
}

@media (max-width: 767px) {
  :root { --page-gutter: 20px; }
  .container { width: min(calc(100% - 2 * var(--page-gutter)), 360px); }
  .hero {
    height: auto;
    min-height: 0;
    padding: calc(var(--header-height, 48px) + 24px) 0 28px;
  }
  /* 标题 → 副标题 → 图片 → 按钮 */
  .hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: auto;
    padding-top: 0;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > h1 {
    order: 1;
    width: 100%;
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.38;
    text-align: center;
  }
  .hero-copy > p {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
  }
  .hero-visual {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 0 0 18px;
    justify-self: stretch;
  }
  .hero-visual img {
    width: 100%;
    height: auto;
    max-height: 220px;
    object-fit: contain;
  }
  .hero-actions {
    order: 4;
    justify-content: center;
    gap: 10px;
    width: auto;
    margin-top: 0;
  }
  .button,
  .hero-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    max-width: 136px;
    height: 36px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: 18px;
  }
  .section-title { font-size: 18px; margin-bottom: 14px; }
  .pain, .advantages, .features, .case-section { padding: 32px 0; }
  .pain-grid { gap: 8px; margin-top: 14px; }
  .pain-grid, .adv-grid { grid-template-columns: 1fr; }
  .pain-card {
    display: block;
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: none;
    border: 1px solid rgba(210, 220, 238, .9);
    background: #fff;
  }
  .pain-card h3 {
    margin: 0 0 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
  }
  .pain-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    width: auto;
    max-width: none;
    color: #666;
  }
  .pain-card img { display: none; }
  .adv-grid { row-gap: 8px; margin-top: 14px; }
  .adv-item {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid rgba(210, 220, 238, .9);
    border-radius: 10px;
    background: #fff;
  }
  .adv-art { display: none; }
  .adv-item h3 { margin-bottom: 2px; font-size: 14px; }
  .adv-item p { font-size: 12px; line-height: 1.45; }
  .feature-list { gap: 36px; }
  .features { padding-top: 40px; }
  .feature-row,
  .feature-row--flip { display: flex; flex-direction: column; gap: 16px; }
  .feature-row--flip .feature-media { order: 0; }
  .feature-copy,
  .feature-copy.align-right { width: 100%; text-align: left; }
  .feature-copy h2 { font-size: 18px; margin-bottom: 10px; }
  .feature-copy p { font-size: 13px; margin-bottom: 8px; line-height: 1.45; }
  .feature-actions,
  .align-right .feature-actions {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 12px;
  }
  .small-button {
    width: auto;
    min-width: 96px;
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }
  .case-card {
    display: flex;
    min-height: 0;
    padding: 16px 14px;
    flex-direction: column;
    border-radius: 12px;
    gap: 12px;
  }
  .case-heading h2 { font-size: 18px; }
  .client-name { font-size: 14px; }
  .case-description { font-size: 13px; line-height: 1.45; }
  .metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 12px 0;
    gap: 10px;
  }
  .case-photo { width: 100%; border-radius: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
