* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

:root {
  --brand: #651e7c;
  --dark: #484848;
  --ink: #202124;
  --body-text: #4f5357;
  --sub-text: #74787c;
  --surface: #f5f5f5;
  --surface-soft: #eef1f4;
  --radius-sm: 4px;
  --radius-md: 6px;
  --shadow-soft: 0 4px 14px rgb(0 0 0 / 10%);
  --shadow-hover: 0 8px 22px rgb(0 0 0 / 15%);
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  font: inherit;
}

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

[hidden] {
  display: none !important;
}

/*
 * section01：产品与解决方案切换组件
 * 后续 section02 / section03 可采用同样的“section ID + 简短类名”结构。
 */
#section01 {
  --red: var(--brand);
  --text: var(--ink);
  --muted: var(--surface);
  --line: #171717;
  --soft: var(--surface-soft);
  padding: 44px 24px 56px;
}

#section01 .wrap {
  width: min(100%, 1300px);
  margin: 0 auto;
}

#section01 .title {
  margin: 0 0 26px;
  font-size: clamp(28px, 2.35vw, 34px);
  line-height: 1.2;
  font-weight: 700;
}

#section01 .layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

#section01 .nav {
  display: grid;
  gap: 6px;
}

#section01 .item {
  position: relative;
  width: 100%;
  min-height: 44px;
  padding: 10px 18px 10px 26px;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--text);
  background: transparent;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

#section01 .item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  transform: translateY(-50%);
}

#section01 .item:hover,
#section01 .item:focus-visible {
  background: #f4f4f4;
  outline: none;
}

#section01 .item.active {
  color: #fff;
  background: var(--red);
  font-weight: 700;
}

#section01 .item.active::before {
  background: #fff;
}

#section01 .main {
  min-width: 0;
}

#section01 .drop {
  display: none;
  position: relative;
  margin-bottom: 0;
}

#section01 .toggle {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--red);
  font-weight: 700;
  cursor: pointer;
}

#section01 .arrow {
  position: relative;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 5px;
  background: #fff;
}

#section01 .arrow::before,
#section01 .arrow::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

#section01 .arrow::before {
  left: 5px;
  transform: rotate(45deg);
}

#section01 .arrow::after {
  right: 5px;
  transform: rotate(-45deg);
}

#section01 .toggle[aria-expanded="true"] .arrow::before {
  transform: rotate(-45deg);
}

#section01 .toggle[aria-expanded="true"] .arrow::after {
  transform: rotate(45deg);
}

#section01 .menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 6px;
  border: 1px solid #dedede;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 12px 30px rgb(0 0 0 / 12%);
}

#section01 .choice {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 3px;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#section01 .choice:hover,
#section01 .choice:focus-visible,
#section01 .choice.active {
  color: #fff;
  background: var(--red);
  outline: none;
}

#section01 .panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  min-height: 286px;
  padding: 30px;
  border-radius: var(--radius-md);
  background: var(--muted);
}

#section01 .copy {
  min-width: 0;
}

#section01 .copy h3 {
  margin: 0 0 18px;
  font-size: clamp(27px, 2.1vw, 32px);
  line-height: 1.25;
}

#section01 .copy p {
  max-width: 590px;
  margin: 0 0 26px;
  color: var(--body-text);
  font-size: 16px;
  line-height: 1.7;
}

#section01 .copy a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding-bottom: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s ease;
}

#section01 .copy a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  opacity: .92;
}

#section01 .copy a span {
  font-size: 21px;
  line-height: 1;
  transform: translateY(1px);
  transition: transform .2s ease;
}

#section01 .copy a:hover,
#section01 .copy a:focus-visible {
  color: var(--red);
  outline: none;
}

#section01 .copy a:hover span,
#section01 .copy a:focus-visible span {
  transform: translate(4px, 1px);
}

#section01 .media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #e3e6ea;
  border-radius: var(--radius-sm);
  background: var(--soft);
}

#section01 .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

#section01 .panel:hover .media img {
  transform: scale(1.015);
}

@media (max-width: 900px) {
  #section01 .layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 28px;
  }

  #section01 .panel {
    grid-template-columns: 1fr;
  }

  #section01 .media {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  #section01 {
    padding: 28px 18px 40px;
  }

  #section01 .wrap {
    max-width: 620px;
  }

  #section01 .title {
    margin-bottom: 22px;
    font-size: 28px;
  }

  #section01 .layout {
    display: block;
  }

  #section01 .nav {
    display: none;
  }

  #section01 .drop {
    display: block;
    margin-bottom: 0;
  }

  #section01 .panel {
    display: block;
    min-height: 0;
    padding: 26px 24px 24px;
  }

  #section01 .copy h3 {
    margin-bottom: 18px;
    font-size: 25px;
  }

  #section01 .copy p {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.7;
  }

  #section01 .copy a {
    margin-bottom: 36px;
    font-size: 15px;
  }

  #section01 .media {
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 420px) {
  #section01 {
    padding-inline: 14px;
  }

  #section01 .title {
    font-size: 28px;
  }

  #section01 .toggle {
    min-height: 54px;
  }

  #section01 .panel {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section01 *,
  #section01 *::before,
  #section01 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
 * section02：响应式 Tabs + Mosaic Media Grid
 * ======================================================= */
#section02 {
  --bg: var(--dark);
  --text: #fff;
  --sub: rgb(255 255 255 / 72%);
  --active: var(--brand);
  --tab: #737373;
  --gap: 12px;
  padding: clamp(64px, 6vw, 88px) 24px;
  color: var(--text);
  background: var(--bg);
}

#section02 .wrap {
  width: min(100%, 1300px);
  margin: 0 auto;
}

#section02 .head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

#section02 .title {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.35vw, 34px);
  line-height: 1.2;
}

#section02 .desc {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

#section02 .tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 32px;
}

#section02 .tab {
  min-width: 146px;
  min-height: 50px;
  padding: 10px 20px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--tab);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

#section02 .tab:hover,
#section02 .tab:focus-visible {
  background: #888;
  outline: none;
  transform: translateY(-1px);
}

#section02 .tab.active {
  background: var(--active);
}

#section02 .panel {
  min-width: 0;
}

#section02 .grid {
  display: grid;
  grid-template-columns: 1fr 2.05fr 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "a v c"
    "b v d";
  gap: var(--gap);
  aspect-ratio: 2.88 / 1;
}

#section02 .card,
#section02 .video {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #333;
}

#section02 .card01 { grid-area: a; }
#section02 .card02 { grid-area: b; }
#section02 .card03 { grid-area: c; }
#section02 .card04 { grid-area: d; }
#section02 .video  { grid-area: v; }

#section02 .card {
  display: block;
  color: #fff;
  text-decoration: none;
}

#section02 .card img,
#section02 .video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#section02 .card img {
  transition: transform .4s ease;
}

#section02 .card:hover img,
#section02 .card:focus-visible img {
  transform: scale(1.035);
}

#section02 .card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

#section02 .label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 12px;
  color: #fff;
  background: rgb(0 0 0 / 52%);
  backdrop-filter: blur(2px);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: background-color .25s ease;
}

#section02 .card:hover .label,
#section02 .card:focus-visible .label {
  background: rgb(0 0 0 / 68%);
}

#section02 .video video {
  display: block;
  background: #222;
}

#section02 .play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 50%;
  color: #fff;
  background: rgb(0 0 0 / 28%);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}

#section02 .play span {
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

#section02 .play:hover,
#section02 .play:focus-visible {
  background: rgb(0 0 0 / 48%);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

#section02 .video.playing .play {
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 768px) {
  #section02 {
    padding: 48px 16px;
  }

  #section02 .wrap {
    max-width: 620px;
  }

  #section02 .title {
    font-size: 28px;
  }

  #section02 .desc {
    max-width: 420px;
    margin-inline: auto;
    font-size: 14px;
  }

  #section02 .tabs {
    gap: 14px;
    margin: 26px 0 26px;
  }

  #section02 .tab {
    min-width: 112px;
    min-height: 44px;
    padding: 8px 16px;
  }

  #section02 .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    grid-template-areas:
      "v v"
      "a b"
      "c d";
    gap: 10px;
    aspect-ratio: auto;
  }

  #section02 .video {
    aspect-ratio: 16 / 9;
  }

  #section02 .card {
    aspect-ratio: 4 / 3;
  }

  #section02 .label {
    min-height: 38px;
    padding: 7px 8px;
    font-size: 13px;
  }

  #section02 .play {
    width: 52px;
    height: 52px;
  }

  #section02 .play span {
    left: 21px;
    top: 16px;
  }
}

@media (max-width: 360px) {
  #section02 .grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "v"
      "a"
      "b"
      "c"
      "d";
  }

  #section02 .card {
    aspect-ratio: 16 / 10;
  }
}

/* =========================================================
 * section03：应用场景切换 + 大图详情
 * ======================================================= */
#section03 {
  --active: var(--brand);
  --card: #888;
  --card-hover: #777;
  --text: var(--ink);
  --sub: var(--sub-text);
  --soft: var(--surface);
  padding: clamp(64px, 6vw, 88px) 24px;
  color: var(--text);
  background: #fff;
}

#section03 .wrap {
  width: min(100%, 1300px);
  margin: 0 auto;
}

#section03 .head {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

#section03 .title {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.35vw, 34px);
  line-height: 1.2;
}

#section03 .desc {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

#section03 .layout {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}

#section03 .main,
#section03 .panel {
  min-width: 0;
  height: 100%;
}

#section03 .panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--soft);
}

#section03 .media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #e4e7ea;
}

#section03 .media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 4%);
}

#section03 .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

#section03 .panel:hover .media img {
  transform: scale(1.018);
}

#section03 .copy {
  flex: 1;
  padding: 20px 22px 22px;
}

#section03 .copy h3 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 600;
}

#section03 .copy p {
  margin: 0;
  color: var(--body-text);
  font-size: 15px;
  line-height: 1.7;
}

#section03 .nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-height: 0;
}

#section03 .item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  padding: 18px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--card);
  cursor: pointer;
  transition: background-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

#section03 .item:hover,
#section03 .item:focus-visible {
  z-index: 1;
  background: var(--card-hover);
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgb(0 0 0 / 12%);
}

#section03 .item.active {
  background: var(--active);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}

#section03 .item.active:hover,
#section03 .item.active:focus-visible {
  background: #5d1b72;
}

#section03 .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

#section03 .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#section03 .text {
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 900px) {
  #section03 .layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
    gap: 16px;
  }

  #section03 .item {
    gap: 9px;
    padding: 14px 10px;
  }

  #section03 .icon {
    width: 38px;
    height: 38px;
  }

  #section03 .text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  #section03 {
    padding: 48px 16px;
  }

  #section03 .wrap {
    max-width: 620px;
  }

  #section03 .head {
    margin-bottom: 24px;
  }

  #section03 .title {
    font-size: 28px;
  }

  #section03 .desc {
    max-width: 430px;
    margin-inline: auto;
    font-size: 14px;
  }

  #section03 .layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  #section03 .nav {
    order: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 6px;
  }

  #section03 .main {
    order: 2;
  }

  #section03 .item {
    min-height: 112px;
    gap: 8px;
    padding: 14px 10px;
  }

  #section03 .item:hover,
  #section03 .item:focus-visible {
    transform: none;
  }

  #section03 .icon {
    width: 38px;
    height: 38px;
  }

  #section03 .panel {
    height: auto;
  }

  #section03 .media {
    aspect-ratio: 16 / 9;
  }

  #section03 .copy {
    padding: 18px 16px 20px;
  }

  #section03 .copy h3 {
    font-size: 19px;
  }

  #section03 .copy p {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (max-width: 360px) {
  #section03 .nav {
    grid-template-columns: 1fr;
  }

  #section03 .item {
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section03 *,
  #section03 *::before,
  #section03 *::after {
    transition-duration: .01ms !important;
  }
}

@keyframes section03-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#section03 .panel:not([hidden]) {
  animation: section03-in .24s ease both;
}

@media (prefers-reduced-motion: reduce) {
  #section03 .panel:not([hidden]) {
    animation: none;
  }
}

/* =========================================================
 * section04：新闻分类 Tabs + 文章卡片 Grid
 * ======================================================= */
#section04 {
  --bg: var(--dark);
  --active: var(--brand);
  --text: #fff;
  --sub: rgb(255 255 255 / 72%);
  --card-text: var(--ink);
  --card-sub: var(--body-text);
  --line: rgb(255 255 255 / 24%);
  padding: clamp(64px, 6vw, 88px) 24px;
  color: var(--text);
  background: var(--bg);
}

#section04 .wrap {
  width: min(100%, 1240px);
  margin: 0 auto;
}

#section04 .head {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

#section04 .title {
  margin: 0 0 10px;
  font-size: clamp(28px, 2.35vw, 34px);
  line-height: 1.2;
}

#section04 .desc {
  margin: 0;
  color: var(--sub);
  font-size: 15px;
  line-height: 1.7;
}

#section04 .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

#section04 .tab {
  position: relative;
  min-height: 54px;
  padding: 12px 20px 16px;
  border: 0;
  color: rgb(255 255 255 / 74%);
  background: transparent;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease;
}

#section04 .tab::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: -1px;
  height: 3px;
  background: var(--active);
  transition: left .22s ease, right .22s ease;
}

#section04 .tab:hover,
#section04 .tab:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 4%);
  outline: none;
}

#section04 .tab.active {
  color: #fff;
}

#section04 .tab.active::after {
  left: 0;
  right: 0;
}

#section04 .panel {
  min-width: 0;
}

#section04 .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

#section04 .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 190px;
  padding: 26px 24px 22px;
  border: 1px solid rgb(0 0 0 / 6%);
  border-radius: var(--radius-md);
  color: var(--card-text);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: left;
  text-decoration: none;
  transition: transform .24s ease, box-shadow .24s ease;
}

#section04 .card h3 {
  overflow: hidden;
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#section04 .card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 22px;
  color: var(--card-sub);
  font-size: 15px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#section04 .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  color: var(--active);
  font-size: 14px;
  font-weight: 700;
}

#section04 .more span {
  display: inline-block;
  font-size: 20px;
  transition: transform .2s ease;
}

#section04 .card:hover,
#section04 .card:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

#section04 .card:hover .more span,
#section04 .card:focus-visible .more span {
  transform: translateX(5px);
}

#section04 .card:focus-visible {
  box-shadow: 0 0 0 2px var(--active), var(--shadow-hover);
}

#section04 .panel:not([hidden]) {
  animation: section04-in .24s ease both;
}

@keyframes section04-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  #section04 .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  #section04 {
    padding: 48px 16px;
  }

  #section04 .wrap {
    max-width: 620px;
  }

  #section04 .title {
    font-size: 28px;
  }

  #section04 .desc {
    max-width: 430px;
    margin-inline: auto;
    font-size: 14px;
  }

  #section04 .tabs {
    margin: 26px 0 28px;
  }

  #section04 .tab {
    min-height: 52px;
    padding-inline: 12px;
  }


  #section04 .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  #section04 .card {
    min-height: 174px;
    padding: 24px 22px 21px;
  }

  #section04 .card h3 {
    font-size: 16px;
  }

  #section04 .card p {
    margin-bottom: 18px;
    font-size: 14px;
  }

  #section04 .more {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #section04 *,
  #section04 *::before,
  #section04 *::after {
    transition-duration: .01ms !important;
  }

  #section04 .panel:not([hidden]) {
    animation: none;
  }
}
