body,
.ms-site-container {
  background: #002147;
}

/* 统一背景样式 */
.wrap.ms-hero-bg-info,
#business .wrap,
#purpose .wrap,
#private .wrap,
#contact-us .wrap {
    background-blend-mode: overlay;
    background-color: rgba(0, 27, 51, 0.6) !important;
}

.bg-light {
    background: linear-gradient(to bottom, transparent, #001b33) !important;
}

/* 卡片样式 */
.card {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* 文字颜色 */
.color-white {
    color: #ffffff !important;
}



/* 页脚样式 */
.ms-footer {
    background-color: rgba(0, 27, 51, 0.95);
    padding: 15px 0;
}

/* 会社案内相关样式 */
#infor {
    background: #002147 !important;
    padding: 80px 0;
}

#infor h1.text-center,
#infor h2.text-center.color-primary,
.color-primary {
    color: #ffffff !important;
    text-shadow: none;
}

#infor .table {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#infor .table td {
    background: #ffffff;
    color: #333;
}

#infor .table td[style*="background-color"] {
    background: #f5f5f5 !important;
    font-weight: 500;
}

/* 表格边框样式 */
#infor .table-bordered,
#infor .table-bordered td {
    border: 1px solid #e0e0e0;
}

/* 所有主要部分的基础样式 */
#purpose,
#business,
#seihin,
#news,
#stadio {
    margin: 0 !important;
    padding: 0 !important;
}

/* 调整内容间距 */
#purpose .container {
    padding-top: 4rem;
    padding-bottom: 0;
}

#business .container {
    padding-top: 0;
    padding-bottom: 4rem;
}

#seihin .container {
    padding-top: 4rem;
    padding-bottom: 0;
}

#news .container {
    padding-top: 0;
    padding-bottom: 4rem;
}

#stadio .container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* 移除多余的margin */
#business,
#seihin,
#news,
#stadio {
    margin-top: -1px !important;
}



/* 确保容器居中 */
.container-full {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto; /* 确保器在页面中居中 */
}
/* 新闻部分主背景 */
#news,
.news-section {
    background: #0A192F; /* 使用藏青色背景 */
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* 新闻滑块容器 */
.news-slider {
  position: relative;
  padding: 20px 0;
  margin: 30px 0;
  background: rgba(0, 27, 51, 0.2);
  border-radius: 12px;
  overflow: hidden;
}

/* 新闻卡片包装器 */
.news-wrapper {
  display: flex;
  overflow: hidden;
  margin: 0 60px;
  transition: transform 0.5s ease;
}

/* 单个新闻滑块 */
.news-slide {
  flex: 0 0 33.333%;
  min-width: 33.333%;
  padding: 0 15px;
}

/* 新闻卡片样式 */
.news-card {
  background: rgba(0, 27, 51, 0.8);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* 卡片图片 */
.card-img {
  height: 160px;
  overflow: hidden;
  background: #001b33;
}

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

.news-card:hover .card-img img {
  transform: scale(1.05);
}

/* 片内容 */
.card-content {
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 27, 51, 0.95), rgba(0, 27, 51, 1));
  color: #fff;
}

.card-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.card-content p {
  font-size: 14px;
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.8);
}

/* 链接样式 */
.news-link {
  display: inline-block;
  color: #00aeff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.news-link:hover {
  color: #66cfff;
}


.prev-btn {
  left: 10px;
}

.next-btn {
  right: 10px;
}



/* 底部圆点 */
.slider-dots {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #00aeff;
  box-shadow: 0 0 10px rgba(0, 174, 255, 0.5);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .news-slide {
    flex: 0 0 50%;
  }
}

@media (max-width: 768px) {
  .news-slide {
    flex: 0 0 100%;
  }
}

/* ケーススタディセクション */
.case-study-section {
  background-color: #002147;
  padding: 60px 0;
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.case-study-header h2 {
  color: #fff;
  font-size: 32px;
  margin: 0;
}

.view-all-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-all-link:hover {
  opacity: 0.8;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin: 0 auto;
  max-width: 1200px;
}

.case-study-item.large {
  grid-column: span 1;
  height: 360px;
}

.case-study-item.small {
  grid-column: span 1;
  height: 280px;
}

.case-study-item {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.case-study-content {
  position: relative;
  height: 100%;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  transition: transform 0.3s ease;
}

.lazy-background {
  background-color: #f6f6f6;
  transition: all 0.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.lazy-background.loaded {
  background-image: var(--background-image);
}

.lazy-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-background.loaded::before {
  opacity: 1;
}

.case-study-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  color: #fff;
  padding: 20px;
}

.lazy-background.loaded .case-study-overlay {
  opacity: 1;
  transform: translateY(0);
}

.case-study-overlay h3 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #fff;
}

.case-description {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
}

.case-study-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.7)
    );
    z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 32px;
  color: #fff;
  font-weight: 500;
}

.view-all {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.view-all:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .case-studies-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .case-study-item.large,
  .case-study-item.small {
    height: 360px;
  }
  
  .case-study-overlay {
    padding: 30px;
  }
  
  .case-study-overlay h3 {
    font-size: 24px;
  }
}


/* 统一section标题样式 */
section h1.text-center,
section h2.text-center {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
}

section {
  background: linear-gradient(to bottom, transparent, #001b33);
  padding: 40px 0;
}

#private {
  background: linear-gradient(to bottom, #001b33, #002b4d);
}

#private h2.text-center {
  color: #ffffff !important;
  margin-bottom: 30px;
}


#purpose {
    background: #0A192F;
    position: relative;
    z-index: 1;
    margin: -1px 0 !important;
    padding: 40px 0 !important;
}

#purpose::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(
        to bottom,
        rgba(0, 27, 51, 0) 0%,
        rgba(0, 27, 51, 0.2) 100%
    );
    z-index: 1;
}

/* 确保内容可见 */
#purpose .container {
  position: relative;
  z-index: 1;
}

/* 如果需要调整文字颜色确保可读性 */
#purpose h2,
#purpose p {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#purpose h1 {
  color: #ffffff;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 40px;
  position: relative;
}

#purpose .concept-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
  position: relative;
}

#purpose .lead {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.8;
  position: relative;
}

#purpose .concept-content {
  max-width: 800px;
  margin: 0 auto;
}

/* 添加段落间距 */
#purpose .lead + .lead {
  margin-top: 30px;
}

#purpose .wrap {
  background: none !important;
}

.vision-content {
  max-width: 800px;
  margin: 0 auto;
}

.vision-text {
  color: #ffffff !important;
  font-size: 18px;
  line-height: 2;
  margin-bottom: 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 最后一段不需要底部间距 */
.vision-text:last-child {
  margin-bottom: 0;
}



/* 统一背景样式 */
#purpose,
.case-study-section {
  background: #0A192F;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

/* 标题样式统一 */
#purpose h1,
.case-study-section h2 {
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#purpose h1 {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 60px;
}

.case-study-section h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 40px;
}


#purpose .concept-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 30px;
  text-align: center;
} 

/* 业务案内背景样式更新 */
#business {
    background: #0a0a0a !important; /* 改为纯藏青色 */
    position: relative;
    z-index: 1;
    margin: -1px 0 !important; /* 保持间隙处理 */
    border: none !important;
}

/* 移除之前的渐变遮罩 */
#business::before {
    display: none; /* 或者完全删除这个伪元素 */
}

/* 确保内容可见 */
#business .container {
    position: relative;
    z-index: 1;
}

/* 保持文字样式 */
#business h2,
#business p {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 移除额外的渐变过渡 */
#business::after {
    display: none; /* 或者完全删除这个伪元素 */
}




/* 全屏封面样式 */
.fullscreen-cover {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url('assets/img2/beijign2.jpg') no-repeat center center;
    background-size: cover;
    will-change: transform; /* 提高性能 */
    transform: translateZ(0); /* 启用硬件加速 */
}

/* 优化背景图片加载 */
@media (max-width: 768px) {
    .fullscreen-cover {
        background-image: url('assets/img2/beijign2-mobile.jpg'); /* 为移动端准备较小的图片 */
    }
}

.cover-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cover-content img {
    max-width: 100%;
    height: auto;
}

/* 向下滚动提示 */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down i {
    color: #fff;
    font-size: 2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}



/* 制品部分样式 */
#seihin {
    background: #000;
    padding: 80px 0;
    color: #fff;
}

.section-title {
    color: #fff;
    font-size: 2.8rem;
    margin-bottom: 60px;
    padding-left: 15px;
}

.products-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
    max-width: 1400px;
}

.product-item {
    flex: 0 1 calc(50% - 15px);
    text-align: center;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.product-image {
    height: 200px;
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 0 20px;
}

.product-text-wrapper {
    margin-bottom: 20px;
}

.product-name {
    font-size: 20px;
    color: #fff;
    margin: 10px 0;
}

.product-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-button {
    display: inline-block;
    padding: 12px 40px 12px 30px;
    color: #fff;
    text-decoration: none;
    border: 1px solid #fff;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent;
    font-size: 14px;
    position: relative;
    letter-spacing: 1px;
    width: 160px;
    margin: 0 auto;
}

.product-button::after {
    content: '›';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    transition: right 0.3s ease;
}

.product-button:hover::after {
    right: 10px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .products-grid {
        flex-direction: column;
        gap: 40px;
    }

    .product-item {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        text-align: center;
    }

    .product-content h3 {
        font-size: 1.1rem;
    }

    .product-name {
        font-size: 1.2rem;
    }

    .product-description {
        font-size: 0.9rem;
    }
}



/* スタジオセクション样式 */
#stadio.mt-6 {
  background: #002147;
  padding: 80px 0;
}

#stadio .section-title {
  color: #ffffff;
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  font-weight: 600;
}

.studio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0 auto;
  max-width: 1200px;
}

.studio-item {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.studio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* 简单的悬停效果 */
.studio-item:hover img {
  transform: scale(1.05);
}

/* 响应式调整 */
@media (max-width: 992px) {
  .studio-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .studio-grid {
      grid-template-columns: 1fr;
      gap: 15px;
  }
  
  #stadio .section-title {
      font-size: 2rem;
      margin-bottom: 30px;
  }
}

/* 修复1：确保body和html没有默认margin */
html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #002147;
    overflow-x: hidden; /* 防止水平滚动 */
}

/* 修复2：调整主容器样式 */
.ms-site-container {
    background: #002147;
    min-height: 100vh;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 修复3：确保所有section没有多余的margin */
section {
    margin: 0 !important;
    padding: 40px 0;
    width: 100%;
    overflow: hidden;
}

/* 修复4：调整footer样式 */
.ms-footer {
    background-color: rgba(0, 27, 51, 0.95);
    margin: 0;
    padding: 15px 0;
    width: 100%;
}

/* 添加遮罩层 */
.case-study-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.4)
    );
    z-index: 1;
}