/* =============================================
   Business Page - business.css
   =============================================
   Sections:
   1. Global Page Reset
   2. Hero Banner
   3. Address Section
   4. Contact Form Section
   5. Mobile Responsive
   ============================================= */

/* ----- 1. Global Page Reset ----- */
.page {
  width: 1920px;
  min-width: 1920px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* ----- 2. Hero Banner ----- */
.biz-hero {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  background: #0e1117;
}

/* Hero 背景图：按 Figma 原比例 4096×2731 铺满宽度，底部溢出 140px */
.biz-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -140px;
  aspect-ratio: 4096 / 2731;
  background-image: url('../img/business-banner.png');
  background-size: 100% 100%;
  background-position: center;
  z-index: 0;
}

/* 渐变遮罩：60% 透明度，从 #0e1117 到 #142344 */
.biz-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0e1117, #142344);
  opacity: 0.6;
  z-index: 1;
}

/* Slogan 装饰线（左下角） */
.biz-hero-slogan {
  position: absolute;
  left: calc(50% - 778px);
  top: 404px;
  z-index: 2;
  pointer-events: none;
}

.biz-hero-slogan img {
  display: block;
  width: 298px;
}

/* Hero 内容容器 */
.biz-hero-inner {
  position: relative;
  z-index: 3;
  width: 1440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  padding: 80px 0;
  box-sizing: border-box;
  color: #fff;
}

.biz-hero-breadcrumb {
  color: #fff;
  line-height: 1.7;
  text-transform: capitalize;
}

.biz-hero-title {
  color: #fff;
  line-height: 1.1;
  width: 1180px;
  font-weight: 300;
  font-variation-settings: "wght" 280;
}

/* ----- 3. Address Section ----- */
.biz-address-section {
  width: 100%;
  padding: 160px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
}

.biz-address-inner {
  width: 1440px;
  display: flex;
  flex-direction: column;
}

/* 每个办公室板块 */
.biz-office {
  width: 100%;
  padding: 120px 0;
}

/* 上方办公室下边框分隔线 */
.biz-office--border {
  border-bottom: 1px solid #E9EBEE;
  padding-top: 0;
  padding-bottom: 120px;
}

/* 第二个办公室上边距 */
.biz-office:not(.biz-office--border) {
  padding-top: 120px;
  padding-bottom: 0;
}

/* 内部布局：地图 + 信息并排 */
.biz-office-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  width: 100%;
  overflow: hidden;
}

/* 地图图片容器 */
.biz-office-map-wrap {
  flex: 1 0 0;
  min-width: 0;
  aspect-ratio: 680 / 382;
  border-radius: 4px;
  overflow: hidden;
}

.biz-office-map {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10px;
  display: block;
}

/* 信息列 */
.biz-office-info {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 20px 0;
}

/* 办公室名称 + 类型 */
.biz-office-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.biz-office-name {
  color: #042959;
  line-height: 1.3;
  font-weight: 350;
  font-variation-settings: "wght" 300;
}

.biz-office-type {
  color: #042959;
  line-height: 1.7;
  font-weight: 310;
  font-variation-settings: "wght" 300;
}

/* 信息行列表 */
.biz-office-rows {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单行信息：图标 + 标签 + 值 */
.biz-office-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.biz-office-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.biz-office-label {
  flex-shrink: 0;
  width: 100px;
  color: #042959;
  line-height: 1.7;
  text-transform: capitalize;
  font-weight: 300;
  font-variation-settings: "wght" 300;
}

.biz-office-value {
  flex: 1;
  min-width: 0;
  color: #042959;
  line-height: 1.7;
  font-weight: 300;
  font-variation-settings: "wght" 300;
}

/* 邮箱双列布局 */
.biz-office-email-cols {
  display: flex;
  flex: 1;
  min-width: 0;
}

.biz-office-email-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.biz-office-contact-label {
  color: #0FA3A3;
  line-height: 1.6;
  font-weight: 310;
  font-variation-settings: "wght" 300;
}

.biz-office-contact-value {
  color: #010705;
  line-height: 1.6;
  font-weight: 310;
  font-variation-settings: "wght" 300;
}

/* ----- 4. Contact Form Section ----- */
.biz-form-section {
  position: relative;
  width: 100%;
  padding: 160px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #E9EBEE;
  overflow: hidden;
  gap: 80px;
}

.biz-form-bg-logo {
  position: absolute;
  left: calc(50% + 69.5px);
  top: -254px;
  width: 1671px;
  height: 2077px;
  transform: translateX(-50%);
  opacity: 0.2;
  background: url('../img/logo icon.svg') center center / contain no-repeat;
  pointer-events: none;
}

.biz-form-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: 100%;
}

/* 表单描述文字 */
.biz-form-desc {
  color: #010705;
  line-height: 1.4;
  white-space: pre;
  text-align: center;
  font-weight: 300;
  font-variation-settings: "wght" 300;
}

/* 表单容器 */
.biz-form {
  width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Name + Email 横排 */
.biz-form-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
}

.biz-form-row .biz-form-field {
  flex: 1;
}

/* 单个字段 */
.biz-form-field {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.biz-form-label {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 1;
  color: #042959;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  pointer-events: none;
}

.biz-form-required {
  color: red;
}

/* 输入框 */
.biz-form-input,
.biz-form-textarea {
  width: 100%;
  padding: 28px 16px 8px;
  border: 1px solid #D0D3D9;
  border-radius: 4px;
  background: #fff;
  color: #042959;
  outline: none;
  box-sizing: border-box;
  font-family: 'Manrope', sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  transition: border-color 0.2s ease;
  resize: none;
}

.biz-form-input {
  height: 64px;
}

.biz-form-textarea {
  height: 240px;
  padding-top: 28px;
}

.biz-form-input:focus,
.biz-form-textarea:focus {
  border-color: #0FA3A3;
}

/* 提交按钮区 */
.biz-form-submit-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

/* 按钮：左侧渐变文字块 + 右侧深色箭头块 */
.biz-form-submit {
  width: auto;
  height: 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  transition: gap 0.3s ease;
}

.biz-form-submit-text {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  background: linear-gradient(to right, #1b8c6c, #042959);
  border-radius: 4px 0 0 4px;
  color: #fff;
  line-height: 1.6;
  white-space: nowrap;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  font-family: "Manrope", "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.biz-form-submit-arrow {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-style: solid;
  border-width: 4px 4px 4px 0;
  border-color: #042959 #042959 #042959 #ffffff;
  color: #042959;
  font-weight: 400;
  line-height: 1;
  border-radius: 0 4px 4px 0;
  box-sizing: border-box;
  padding-right: 4px;
  font-family: "Manrope", "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.biz-form-submit-arrow-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  color: #042959;
  transform: rotate(0deg);
  transition: transform 0.3s ease, color 0.3s ease;
}

.biz-form-submit-arrow-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.biz-form-submit:hover {
  gap: 0;
}

.biz-form-submit:hover .biz-form-submit-text {
  background: linear-gradient(90deg, #0fa3a3 0%, #23d972 100%);
  transform: translateX(4px);
}

.biz-form-submit:hover .biz-form-submit-arrow {
  background: #23d972;
  border-color: #23d972;
  color: #ffffff;
}

.biz-form-submit:hover .biz-form-submit-arrow-icon {
  color: #ffffff;
  transform: rotate(45deg);
}

.biz-form-submit:hover .biz-form-submit-arrow-icon svg {
  transform: scale(1.3);
}

/* ----- 5. Mobile Responsive ----- */
@media screen and (max-width: 768px) {
  .page {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .section.section-scroll-fade,
  .section.section-scroll-fade.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .biz-hero {
    height: auto;
    min-height: 260px;
    padding: 80px 24px 48px;
    background-size: cover;
  }

  .biz-hero::before {
    inset: 0;
    aspect-ratio: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .biz-hero-slogan {
    display: none;
  }

  .biz-hero-slogan img {
    width: 200px;
  }

  .biz-hero-inner {
    width: 100%;
    padding-bottom: 0;
    gap: 16px;
  }

  .biz-hero-title {
    width: 100%;
    font-size: 24px;
  }

  .biz-address-section {
    padding: 40px 0;
    overflow: visible;
  }

  .biz-address-section,
  .biz-address-section.section-scroll-fade,
  .biz-address-section.section-scroll-fade.is-visible,
  .biz-address-inner,
  .biz-office,
  .biz-office-inner,
  .biz-office-info {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .biz-address-inner {
    width: 100%;
    max-width: none;
    padding: 0 16px;
    box-sizing: border-box;
    overflow: visible;
  }

  .biz-office {
    padding: 32px 0;
  }

  .biz-office--border {
    padding-top: 0;
    padding-bottom: 32px;
  }

  .biz-office:not(.biz-office--border) {
    padding-top: 32px;
    padding-bottom: 0;
  }

  .biz-office-inner {
    flex-direction: column;
    gap: 20px;
    overflow: visible;
    align-items: stretch;
  }

  .biz-office-map-wrap {
    flex: none;
    position: relative;
    display: block;
    width: 320px;
    max-width: 100%;
    height: 200px;
    aspect-ratio: auto;
    min-height: 200px;
    align-self: center;
    margin: 0 auto;
    overflow: hidden;
    background: #eef2f7;
  }

  .biz-office-map {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 100%;
    max-width: none;
    height: 100%;
    min-height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
  }

  .biz-office-info {
    gap: 18px;
    padding: 0;
    width: 100%;
  }

  .biz-office-header {
    gap: 6px;
  }

  .biz-office-name {
    font-size: 24px;
  }

  .biz-office-type {
    font-size: 14px;
  }

  .biz-office-rows {
    gap: 16px;
  }

  .biz-office-row {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: flex-start;
    column-gap: 8px;
    row-gap: 4px;
  }

  .biz-office-icon {
    width: 20px;
    height: 20px;
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 2px;
    display: block;
  }

  .biz-office-label {
    grid-column: 2;
    width: 100%;
    line-height: 1.5;
  }

  .biz-office-value,
  .biz-office-email-cols {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    padding-left: 0;
    box-sizing: border-box;
  }

  .biz-office-value,
  .biz-office-contact-value {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .biz-office-label,
  .biz-office-value,
  .biz-office-contact-label,
  .biz-office-contact-value {
    max-width: 100%;
    text-overflow: clip;
    overflow: visible;
  }

  .biz-office-email-cols {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .biz-office-email-col {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .biz-form-section {
    padding: 60px 24px;
    gap: 40px;
  }

  .biz-form-bg-logo {
    width: 900px;
    height: 1120px;
    left: 50%;
    top: -120px;
  }

  .biz-form-desc {
    white-space: normal;
    text-align: left;
    font-size: 16px;
  }

  .biz-form {
    width: 100%;
  }

  .biz-form-row {
    flex-direction: column;
    gap: 12px;
  }

  .biz-form-input {
    height: 52px;
  }

  .biz-form-textarea {
    height: 160px;
  }
}
