/* ==========================================================================
   全局通用样式
   ========================================================================== */
:root {
  --primary-color: #0E3B97;
  --primary-deep: #092d7a;
  --green-color: #0f822e;
  --purple-blue: #353994;
  --text-color: #222;
  --sub-text-color: #555;
  --border-blue: #0E3B97;
  --tech-gradient: linear-gradient(135deg, #0E3B97 0%, #353994 100%);
  --tech-gradient-hover: linear-gradient(135deg, #092d7a 0%, #0E3B97 100%);
  --soft-shadow: 0 8px 24px rgba(14, 59, 151, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: PingFangSC-Regular, "Microsoft YaHei", Avenir, Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: var(--text-color);
}

a,
button {
  font-family: inherit;
}

a,
button,
.scene-tab,
.pass-step,
.app-card,
.advantage-card,
.case-nav,
.btn-consult {
  cursor: pointer;
}

.main-banner {
  width: 100%;
  overflow: hidden;
}

.main-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.visitor-container {
  width: 100%;
  max-width: 1200px;
  margin-right: auto;
  margin-left: auto;
  padding: 0 30px;
}

.visitor-section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.bg-white {
  background-color: #fff;
}

.bg-app {
  background-image: url("https://cdn.tianxia51.cn/release/website/assets/images/ModuleTwo/scenario-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.bg-case {
  background-image: url("https://cdn.tianxia51.cn/release/website/assets/images/ModuleFour/section-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.section-title {
  text-align: center;
  margin-bottom: 42px;
}

.section-title h2 {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #111;
}

.section-title p {
  margin: 0;
  font-size: 20px;
  font-weight: lighter;
  letter-spacing: 1px;
  color: #333;
}

.btn-consult {
  background: linear-gradient(135deg, #0052D9 0%, #00A4FF 100%);
  color: #fff;
  border-radius: 6px;
  padding: 10px 35px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 82, 217, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  display: inline-block;
  text-decoration: none;
}

.btn-consult::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s;
  z-index: -1;
}

.btn-consult:hover {
  background: linear-gradient(135deg, #0045B8 0%, #008EE6 100%);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 164, 255, 0.3);
  text-decoration: none;
}

.btn-consult:hover::after {
  left: 150%;
}

.text-center-btn {
  text-align: center;
  margin-top: 30px;
}

/* ==========================================================================
   模块一：5大访客通行场景
   ========================================================================== */
.scene-section {
  padding-bottom: 56px;
}

.scene-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.scene-tab {
  min-height: 58px;
  padding: 0 11px;
  border: 1px solid rgba(14, 59, 151, 0.72);
  border-radius: 8px;
  background-color: #fff;
  color: #222;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  box-shadow: inset 0 0 0 1px rgba(14, 59, 151, 0.08);
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.scene-tab:hover,
.scene-tab.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #0052D9 0%, #00A4FF 100%);
  box-shadow: 0 10px 24px rgba(0, 82, 217, 0.2);
  transform: translateY(-2px);
}

.scene-tab:focus {
  outline: none;
}

.scene-display {
  width: 100%;
  margin: 0 auto;
  padding: 4px;
  background: #fff;
  border: 1px solid #d4d4d4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.scene-display img {
  display: block;
  width: 100%;
  aspect-ratio: 1000 / 450;
  object-fit: contain;
  background: #fff;
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
  transition: opacity 0.26s ease, transform 0.32s ease, filter 0.32s ease;
}

.scene-display img.is-switching {
  opacity: 0;
  transform: scale(0.985);
  filter: blur(2px);
}

.pass-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 60px;
}

.pass-step {
  flex: 0 0 122px;
  height: 128px;
  border: 2px solid var(--border-blue);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pass-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--soft-shadow);
}

.pass-step img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  margin-bottom: 10px;
}

.pass-step span {
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

.flow-arrow {
  width: 24px;
  height: auto;
  flex: 0 0 auto;
}

/* ==========================================================================
   模块二：核心应用
   ========================================================================== */
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 38px 62px;
}

.app-card {
  min-height: 248px;
  padding: 24px 15px 22px;
  border: 2px solid var(--border-blue);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.app-card:hover {
  border-color: var(--green-color);
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(15, 130, 46, 0.12);
}

.app-card-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}

.app-card-title img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.app-card-title h3 {
  position: relative;
  margin: 0;
  padding-bottom: 10px;
  color: #222;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
}

.app-card-title h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 86px;
  height: 2px;
  background: var(--primary-color);
}

.app-list {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  justify-content: space-between;
  column-gap: 0;
  row-gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.app-card-signin .app-list li:nth-child(2),
.app-card-signin .app-list li:nth-child(5) {
  transform: translateX(-26px);
}

.app-card-signin .app-list li:nth-child(3),
.app-card-signin .app-list li:nth-child(6) {
  transform: translateX(-30px);
}

.app-list li {
  display: flex;
  align-items: center;
  min-width: 0;
  color: #333;
  font-size: 15px;
  font-weight: lighter;
  letter-spacing: 1px;
  line-height: 1.25;
  white-space: nowrap;
}

.app-list li img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 8px;
  flex: 0 0 auto;
}

.list-more {
  display: inline-block;
  padding-left: 36px;
  color: #777;
}

/* ==========================================================================
   模块三：产品优势
   ========================================================================== */
.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px 52px;
}

.advantage-card {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  padding: 26px 24px;
  border: 2px solid var(--border-blue);
  border-radius: 12px;
  background: #fff;
  color: #222;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: color 0.42s ease, transform 0.36s ease, box-shadow 0.36s ease, border-color 0.36s ease;
}

.advantage-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tech-gradient);
  opacity: 0;
  transition: opacity 0.42s ease;
  z-index: 0;
}

.advantage-card > * {
  position: relative;
  z-index: 1;
}

.advantage-card:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 12px 26px rgba(14, 59, 151, 0.22);
}

.advantage-card:hover::before {
  opacity: 1;
}

.advantage-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex: 0 0 auto;
  transition: filter 0.42s ease, transform 0.42s ease;
}

.advantage-card:hover img {
  filter: brightness(0) invert(1);
  transform: scale(1.04);
}

.advantage-card h3 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.3;
}

.advantage-card p {
  margin: 0;
  color: inherit;
  font-size: 15px;
  font-weight: lighter;
  letter-spacing: 1px;
  line-height: 1.55;
  text-align: justify;
}

/* ==========================================================================
   模块四：典型案例
   ========================================================================== */
.case-carousel-wrapper {
  position: relative;
  padding: 0;
}

.case-nav {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 44px;
  height: 74px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-50%);
  transition: color 0.25s ease, transform 0.25s ease;
}

.case-nav span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-top: 5px solid currentColor;
  border-left: 5px solid currentColor;
  transform-origin: center;
}

.case-prev span {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.case-next span {
  transform: translate(-65%, -50%) rotate(135deg);
}

.case-nav:hover {
  color: var(--green-color);
  transform: translateY(-50%) scale(1.08);
}

.case-nav:focus {
  outline: none;
}

.case-prev {
  left: 26px;
}

.case-next {
  right: 26px;
}

.case-box {
  min-height: 432px;
  padding: 56px 112px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.08);
}

.case-item {
  display: none;
  align-items: center;
  gap: 25px;
  width: 100%;
  animation: caseFadeIn 0.42s ease;
}

.case-item.active {
  display: flex;
}

@keyframes caseFadeIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.case-img {
  position: relative;
  width: 50%;
  flex: 0 0 50%;
}

.case-img img {
  position: relative;
  display: block;
  width: 100%;
  object-fit: cover;
}

.case-content {
  width: 58%;
  flex: 1 1 auto;
}

.case-content h3 {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  color: #111;
}

.case-content h3 span {
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 2px;
  white-space: nowrap;
}

.case-content h3 img {
  height: 40px;
  max-width: 160px;
  object-fit: contain;
}

.case-divider {
  width: 100%;
  height: 2px;
  margin: 12px 0 22px;
  background: linear-gradient(90deg, var(--primary-color) 0 88px, #c8d4ec 88px 100%);
}

.case-content p {
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: lighter;
  letter-spacing: 1px;
  line-height: 2;
  text-align: justify;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1199px) {
  .visitor-container {
    padding: 0 24px;
  }

  .scene-tabs {
    gap: 10px;
  }

  .scene-tab {
    font-size: 16px;
  }

  .pass-flow {
    flex-wrap: wrap;
    justify-content: center;
  }

  .pass-step {
    flex-basis: 126px;
  }

  .flow-arrow {
    width: 20px;
  }

  .app-grid,
  .advantage-grid {
    gap: 28px;
  }

  .app-list {
    grid-template-columns: repeat(2, max-content);
    justify-content: space-between;
    column-gap: 0;
  }

  .app-card-signin .app-list li:nth-child(2),
  .app-card-signin .app-list li:nth-child(5),
  .app-card-signin .app-list li:nth-child(3),
  .app-card-signin .app-list li:nth-child(6) {
    transform: none;
  }
}

@media (max-width: 991px) {
  .visitor-section {
    padding: 46px 0;
  }

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

  .scene-tab:last-child {
    grid-column: span 2;
  }

  .app-grid,
  .advantage-grid {
    grid-template-columns: 1fr;
  }

  .app-card,
  .advantage-card {
    min-height: auto;
  }

  .case-carousel-wrapper {
    padding: 0;
  }

  .case-box {
    padding: 36px 64px;
  }

  .case-item.active {
    flex-direction: column;
    gap: 28px;
  }

  .case-img,
  .case-content {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 767px) {
  .visitor-container {
    padding: 0 16px;
  }

  .visitor-section {
    padding: 36px 0;
  }

  .section-title {
    margin-bottom: 28px;
  }

  .section-title h2 {
    font-size: 22px;
  }

  .section-title p {
    font-size: 16px;
  }

  .scene-tabs {
    grid-template-columns: 1fr;
  }

  .scene-tab,
  .scene-tab:last-child {
    grid-column: auto;
  }

  .scene-display {
    width: 100%;
  }

  .pass-flow {
    margin-top: 36px;
    gap: 12px;
  }

  .pass-step {
    flex: 0 1 calc(50% - 10px);
    height: 112px;
  }

  .pass-step span {
    font-size: 16px;
  }

  .flow-arrow {
    display: none;
  }

  .app-card-title {
    justify-content: flex-start;
  }

  .app-list {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
  }

  .advantage-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-carousel-wrapper {
    padding: 0;
  }

  .case-nav {
    width: 28px;
    height: 54px;
  }

  .case-nav span {
    width: 22px;
    height: 22px;
    border-width: 4px;
  }

  .case-box {
    padding: 28px 42px;
    border-radius: 12px;
  }

  .case-prev {
    left: 8px;
  }

  .case-next {
    right: 8px;
  }

  .case-content h3 {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .case-content p {
    line-height: 1.8;
  }
}
