/* OUKE Grid Section Styles */
/* 重置样式，避免继承问题 */
.ouke-grid-wrapper * {
  box-sizing: border-box;
}

.ouke-grid-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.ouke-grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  margin: 0;
  padding: 0;
}

.ouke-grid-item {
  position: relative;
  min-height: 500px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.ouke-grid-item.ouke-animated {
  opacity: 1;
  transform: translateY(0);
}

/* Content Box */
.ouke-content-box {
  height: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.ouke-bg-light {
  background-color: #f5f5f5;
}

.ouke-bg-red {
  background-color: #dc2626;
}

.ouke-text-content {
  max-width: 600px;
  width: 100%;
}

/* Typography */
.ouke-title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ouke-text-white {
  color: #fff !important;
}

.ouke-divider {
  width: 64px;
  height: 4px;
  margin: 0 0 24px 0;
}

.ouke-divider-red {
  background-color: #dc2626;
}

.ouke-divider-white {
  background-color: #fff;
}

.ouke-description {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 32px 0;
  color: #4b5563;
}

.ouke-description.ouke-text-white {
  color: #fff !important;
}

/* Buttons */
.ouke-btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.ouke-btn-dark {
  background-color: #262626;
  color: #fff;
}

.ouke-btn-dark:hover {
  background-color: #404040;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.ouke-btn-white {
  background-color: #fff;
  color: #dc2626;
  font-weight: 600;
}

.ouke-btn-white:hover {
  background-color: #f4f4f5;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Image Box */
.ouke-image-box {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.ouke-bg-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.ouke-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.ouke-img:hover {
  transform: scale(1.1);
}

.ouke-img-blend {
  mix-blend-mode: overlay;
}

/* Fade In Animation */
@keyframes oukeFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ouke-fade-in.ouke-animated {
  animation: oukeFadeIn 1s ease-out forwards;
}

/* Responsive Design */
@media screen and (max-width: 1200px) {
  .ouke-content-box {
    padding: 50px 60px;
  }

  .ouke-title {
    font-size: 40px;
  }
}

@media screen and (max-width: 992px) {
  /* 平板端：保持响应式，但不超过屏幕宽度 */
  .ouke-grid-container {
    max-width: 100%;
  }

  .ouke-content-box {
    padding: 40px 50px;
  }

  .ouke-title {
    font-size: 36px;
  }

  .ouke-description {
    font-size: 15px;
  }
}

@media screen and (max-width: 768px) {
  /* 移动端取消最大宽度限制，改为100% */
  .ouke-grid-container {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
  }

  .ouke-grid-item {
    min-height: 400px;
  }

  .ouke-content-box {
    min-height: 400px;
    padding: 40px 30px;
  }

  .ouke-image-box {
    min-height: 400px;
  }

  .ouke-title {
    font-size: 32px;
  }
}

@media screen and (max-width: 480px) {
  /* 超小屏幕也确保100%宽度 */
  .ouke-grid-container {
    max-width: 100%;
    width: 100%;
  }

  .ouke-content-box {
    padding: 30px 20px;
  }

  .ouke-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .ouke-divider {
    margin-bottom: 20px;
  }

  .ouke-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .ouke-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}