﻿html, body { overflow-x: hidden !important; }
:root {
  --motion-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --motion-ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  --motion-ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ocean-ai-page {
  color: #102033;
  background: #eaf6ff;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  overflow: hidden;
}

.ocean-body {
  margin-top: -1px;
  background: #eaf6ff url("../images/ocean-ai/main-bg.png") center top / 100% 100% no-repeat;
}

.ocean-container {
  width: min(1180px, calc(100% - 32px));
  margin: -24px auto 0;
}

.ocean-section {
  position: relative;
  padding: 64px 0 44px;
}

.ocean-section-heading {
  text-align: center;
  margin: 0 auto 42px;
}

.ocean-section-heading.compact {
  margin-bottom: 46px;
}

.ocean-mark {
  width: 78px;
  height: 80px;
  object-fit: contain;
  display: block;
  margin: 0 auto 18px;
  animation: oceanFloat 4.6s ease-in-out infinite;
}

.ocean-section-heading h1,
.ocean-section-heading h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.ocean-section-heading h1 {
  font-size: 38px;
  color: #2577f2;
  text-shadow: 0 8px 22px rgba(42, 128, 255, .12);
}

.ocean-section-heading h2 {
  font-size: 32px;
  color: #0a1120;
}

.ocean-section-heading h2 em {
  color: #f19919;
  font-style: normal;
}

.ocean-section-heading h2 strong {
  color: #f19919;
  font-size: 44px;
  vertical-align: -2px;
}

.ocean-subline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  color: #263b52;
  font-size: 16px;
}

.ocean-subline span {
  width: 120px;
  height: 12px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.ocean-subline span:first-child {
  background-image: url("../images/ocean-ai/subline-right.png");
}

.ocean-subline span:last-child {
  background-image: url("../images/ocean-ai/subline-left.png");
}

.ocean-subline i {
  display: none;
}

.ocean-subline p {
  margin: 0;
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.model-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: stretch;
  gap: 42px;
  max-width: 980px;
  margin: 0 auto;
}

.model-copy {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

.model-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: #203247;
  text-align: justify;
  text-indent: 2em;
}

.model-copy p:last-child {
  margin-bottom: 0;
}

.model-screen img,
.feature-image img {
  width: 100%;
  display: block;
}

.model-screen {
  filter: drop-shadow(0 18px 26px rgba(47, 137, 224, .16));
  animation: oceanFloat 5.2s ease-in-out infinite;
  margin-top: 18px;
}

.platform-section {
  padding-top: 58px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
}

.cap-card {
  aspect-ratio: 566 / 510;
  min-height: 0;
  padding: 50px 22px 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center top;
  text-align: center;
  transition: transform 220ms ease, filter 220ms ease;
  
}

.cap-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 18px 22px rgba(60, 142, 224, .16));
}

.cap-card h3 {
  display: none;
}

.cap-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.72;
  color: #24384d;
  text-align: justify;
}

.features-section {
  padding-top: 70px;
}

.feature-tabs {
  display: flex;
  justify-content: center;
  gap: 52px;
  margin-bottom: 26px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.feature-tabs::-webkit-scrollbar { display: none; }

.feature-tabs button {
  border: 0;
  background: transparent;
  padding: 0 0 12px;
  color: #1d2735;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: color .22s ease;
}

.feature-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #10b7f1, #236cff);
  transform: scaleX(0);
  transition: transform .24s ease;
}

.feature-tabs button.active {
  color: #00a7e7;
}

.feature-tabs button.active::after {
  transform: scaleX(1);
}

.feature-panel {
  min-height: 520px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 104px 88px;
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: 64px;
  align-items: center;
  background: url("../images/ocean-ai/feature-bg.png") center / calc(100% + 4px) calc(100% + 4px) no-repeat;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
}

.feature-copy {
  animation: fadeIn 260ms var(--motion-ease-out) both;
}

.feature-copy h3 {
  margin: 0 0 14px;
  color: #14a6eb;
  font-size: 22px;
  font-weight: 800;
}

.feature-copy h4 {
  margin: 0 0 20px;
  color: #f39a19;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 800;
}

.feature-copy ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.feature-copy li {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 12px;
  color: #30445b;
  font-size: 16px;
  line-height: 1.85;
  text-align: justify;
}

.feature-copy li::before {
  content: "";
  margin-top: .72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #18a8ef;
  box-shadow: 0 0 0 4px rgba(24, 168, 239, .12);
}

.feature-image {
  animation: imageSwap 280ms var(--motion-ease-out) both;
}

.scenario-section {
  position: relative;
  padding: 74px 0 92px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: min(1060px, 100%);
  margin: 0 auto;
  align-items: start;
}

.scenario-card {
  position: relative;
  aspect-ratio: 555 / 658;
  height: auto;
  box-sizing: border-box;
  padding: 62px 22px 24px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  text-align: center;
  overflow: hidden;
  transition: transform 220ms ease, filter 220ms ease;
}

.scenario-card:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 16px 18px rgba(47, 137, 224, .14));
}

.scenario-card h3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -7px);
  width: 48%;
  height: 18%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

.scenario-card h4 {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.scenario-card.orange h4 { color: #f09716; }
.scenario-card.cyan h4 { color: #00a8c6; }
.scenario-card.blue h4 { color: #2f68ed; }
.scenario-card.yellow h4 { color: #eda414; }

.scenario-card p {
  margin: 0;
  color: #33465d;
  font-size: 15px;
  line-height: 1.68;
  text-align: justify;
}

@keyframes oceanFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes cardRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes imageSwap {
  from { opacity: .45; transform: scale(.985); }
  to { opacity: 1; transform: scale(1); }
}

.reveal-up,
.reveal-left,
.reveal-right,
.cap-card,
.scenario-card,
.feature-panel {
  opacity: 0;
  transition-property: opacity, transform, filter;
  transition-duration: 620ms;
  transition-timing-function: var(--motion-ease-out);
  will-change: opacity, transform;
}

.reveal-up,
.cap-card,
.scenario-card,
.feature-panel { transform: translate3d(0, 28px, 0); }
.reveal-left { transform: translate3d(-28px, 0, 0); }
.reveal-right { transform: translate3d(28px, 0, 0); }

.is-visible.reveal-up,
.is-visible.reveal-left,
.is-visible.reveal-right,
.cap-card.is-visible,
.scenario-card.is-visible,
.feature-panel.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cap-card:nth-child(2), .scenario-card:nth-child(2) { transition-delay: 70ms; }
.cap-card:nth-child(3), .scenario-card:nth-child(3) { transition-delay: 140ms; }
.cap-card:nth-child(4), .scenario-card:nth-child(4) { transition-delay: 210ms; }

@media (max-width: 1200px) {
  .feature-tabs { gap: 32px; }
  .scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}
}

@media (max-width: 991px) {
  .ocean-container { width: min(720px, calc(100% - 28px)); }
  .ocean-section { padding: 44px 0 28px; }
  .ocean-section-heading h1 { font-size: 28px; }
  .ocean-section-heading h2 { font-size: 25px; }
  .ocean-subline { flex-wrap: wrap; padding: 0 8px; }
  .ocean-subline span, .ocean-subline i { display: none; }
  .ocean-subline p { max-width: 100%; white-space: normal; line-height: 1.6; }
  .model-grid, .feature-panel { grid-template-columns: 1fr; }
  .model-grid { gap: 24px; }
  .model-copy p { font-size: 14px; }
  .capability-grid, .scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}
  .feature-tabs { gap: 18px; overflow-x: auto; justify-content: flex-start; padding: 0 4px 4px; }
  .feature-tabs button { white-space: nowrap; flex: 0 0 auto; font-size: 15px; }
  .feature-panel { padding: 38px 26px; background-size: cover; }
  .scenario-card { padding: 64px 24px 22px; }
}

@media (max-width: 576px) {
  .ocean-mark { width: 58px; height: 60px; }
  .ocean-section-heading h1 { font-size: 22px; max-width: 340px; margin-left: auto; margin-right: auto; }
  .ocean-section-heading h2 { font-size: 21px; max-width: 330px; margin-left: auto; margin-right: auto; }
  .ocean-section-heading h2 em { display: block; margin-top: 4px; }
  .ocean-section-heading h2 strong { font-size: 30px; }
  .scenario-section { padding-bottom: 70px; }
  .ocean-section-heading h1,
  .ocean-section-heading h2,
  .ocean-section-heading h2 em {
    width: 100%;
    white-space: normal;
    word-break: break-all;
  }
  .capability-grid, .scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  width: min(980px, 100%);
  margin: 0 auto;
  align-items: start;
}
  .cap-card { max-width: 280px; margin: 0 auto; }
  .feature-panel { padding: 30px 18px; }
  .scenario-card { width: min(270px, 100%); max-width: 270px; margin: 0 auto; padding: 66px 26px 22px; }
}

@media (max-width: 420px) {
  .ocean-section-heading h1 { max-width: 310px; }
  .ocean-section-heading h2 { max-width: 310px; }
  .model-copy p,
  .scenario-card p,
  .feature-copy li,
  .cap-card p { overflow-wrap: anywhere; }
}

@media (hover: hover) and (pointer: fine) {
  .feature-tabs button:hover {
    color: #00a7e7;
  }
  .cap-card:hover,
  .scenario-card:hover {
    transform: translateY(-7px);
  }
}

.feature-tabs button:active {
  transform: scale(.97);
}

@media (prefers-reduced-motion: reduce) {
  .ocean-mark,
  .model-screen,
  .feature-copy,
  .feature-image,
  .reveal-up,
  .reveal-left,
  .reveal-right,
  .cap-card,
  .scenario-card,
  .feature-panel {
    animation: none;
    transition: none;
    transform: none;
    opacity: 1;
  }
}
/* Final mobile layout fixes for OceanAI */
@media (max-width: 991px) {
  .ocean-ai-page,
  .ocean-body {
    overflow-x: hidden;
  }

  .ocean-body {
    background-size: auto 100%;
    background-position: center top;
  }

  .ocean-container {
    width: min(720px, calc(100% - 28px));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 280px)) !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 640px !important;
    gap: 66px 24px !important;
  }

  .scenario-grid {
    grid-template-columns: repeat(2, minmax(0, 270px)) !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 620px !important;
    gap: 56px 24px !important;
  }
}

@media (max-width: 640px) {
  .ocean-container {
    width: calc(100% - 28px) !important;
  }

  .ocean-section {
    padding: 42px 0 30px;
  }

  .ocean-section-heading {
    margin-bottom: 32px;
  }

  .ocean-section-heading.compact {
    margin-bottom: 34px;
  }

  .ocean-section-heading h1 {
    max-width: 330px;
    font-size: 22px;
    line-height: 1.25;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ocean-section-heading h2 {
    max-width: 340px;
    font-size: 22px;
    line-height: 1.28;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .ocean-section-heading h2 em {
    display: block;
    margin-top: 4px;
    word-break: normal;
  }

  .ocean-subline {
    padding: 0;
  }

  .ocean-subline p {
    max-width: 340px;
    margin: 0 auto;
    white-space: normal;
    line-height: 1.55;
  }

  .model-grid {
    grid-template-columns: 1fr !important;
    gap: 22px;
  }

  .model-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  .model-screen,
  .feature-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .model-screen img,
  .feature-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .capability-grid,
  .scenario-grid {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .capability-grid {
    gap: 64px !important;
  }

  .cap-card {
    width: min(280px, 100%) !important;
    max-width: 280px !important;
    min-height: 260px;
    margin: 0 auto !important;
    padding: 104px 22px 24px;
    box-sizing: border-box;
  }

  .cap-card h3 {
    font-size: 19px;
  }

  .cap-card p {
    font-size: 12px;
    line-height: 1.72;
  }

  .feature-tabs {
    justify-content: flex-start !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    gap: 22px;
    padding: 0 4px 6px;
  }

  .feature-tabs button {
    flex: 0 0 auto;
    font-size: 14px;
  }

  .feature-panel {
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-height: auto;
    padding: 28px 18px !important;
    gap: 22px;
    box-sizing: border-box;
    background-size: cover;
  }

  .feature-copy h3 {
    font-size: 20px;
  }

  .feature-copy h4 {
    font-size: 14px;
  }

  .feature-copy li {
    font-size: 13px;
    line-height: 1.75;
  }

  .scenario-section {
    padding-bottom: 72px;
  }

  .scenario-grid {
    gap: 46px !important;
  }

  .scenario-card {
    width: min(270px, 100%) !important;
    max-width: 270px !important;
    aspect-ratio: 555 / 658;
    margin: 0 auto !important;
    padding: 62px 26px 22px !important;
    box-sizing: border-box;
  }

  .scenario-card h3 {
    font-size: 20px;
  }

  .scenario-card h4 {
    font-size: 15px;
    margin-bottom: 12px;
  }

  .scenario-card p {
    font-size: 12.5px;
    line-height: 1.62;
  }
}
