/* 全局重置 & 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
}
body {
  background-color: #fff;
  color: #1A1A2E;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
button {
  cursor: pointer;
  border: none;
  transition: 0.3s;
}
ul {
  list-style: none;
}

/* 通用工具类 */
.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1A1A2E;
}
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
}

/* --------------------- 顶部导航 --------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 999;
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 40px;
  height: 40px;
  background: #407BFF;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}
.logo-text {
  font-weight: bold;
  font-size: 18px;
}
.nav {
  display: flex;
  gap: 32px;
}
.nav a:hover {
  color: #407BFF;
}
.btn-group {
  display: flex;
  gap: 12px;
}
.btn-outline {
  padding: 8px 16px;
  border: 1px solid #407BFF;
  color: #407BFF;
  border-radius: 24px;
  font-size: 14px;
  background: transparent;
}
.btn-outline:hover {
  background: #407BFF;
  color: white;
}
.btn-primary {
  padding: 8px 16px;
  background: #407BFF;
  color: white;
  border-radius: 24px;
  font-size: 14px;
}
.btn-primary:hover {
  opacity: 0.9;
}
.mobile-menu {
  display: none;
  font-size: 24px;
  background: transparent;
}
@media (max-width: 768px) {
  .nav, .btn-group {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
}

/* --------------------- 首页Banner（核心：图片层叠 + 背景铺满） --------------------- */
.hero {
  /* 渐变 + 背景图叠加，实现铺满效果 */
  background: linear-gradient(180deg, #EEF3FF 0%, #FFFFFF 100%), 
              url('images/photos/background.png') no-repeat center center;
  /* 关键：背景图铺满整个区域 */
  background-size: cover;
  /* 渐变与背景图叠加模式（保留渐变同时显示背景） */
  background-blend-mode: overlay;
  /* 确保宽度100%，无空白 */
  width: 100%;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
.hero-left {
  flex: 1;
}
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
}
.hero-subtitle {
  font-size: 20px;
  color: #407BFF;
  margin-bottom: 8px;
}
.hero-title {
  font-size: 48px;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-desc {
  color: #666;
  max-width: 400px;
  margin-bottom: 32px;
}
.hero-btn {
  padding: 12px 32px;
  background: white;
  color: #407BFF;
  border-radius: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  font-size: 18px;
}
.hero-btn:hover {
  background: #407BFF;
  color: white;
}

/* ✅ 修复：三张图片完美层叠，左右露出，不被盖住 */
.image-stack {
  position: relative;
  width: 340px;
  height: 680px;
}
.stack-left, .stack-right, .stack-center {
  position: absolute;
  width: 280px;
  object-fit: cover;
}
/* 左侧订单图：偏移+缩小，下层 */
.stack-left {
  left: -150px;
  top: 150px;
  width: 600px;
  z-index: 1;
  transform: scale(0.92);
}
/* 右侧发布图：偏移+缩小，下层 */
.stack-right {
  right: -150px;
  top: 300px;
  z-index: 3;
  transform: scale(0.92);
}
/* 中间首页图：居中，上层，盖住边缘 */
.stack-center {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
}

/* --------------------- 核心业务 --------------------- */
.service {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.service-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
/* 基础项：左图右文 */
.service-item {
  display: flex;
  align-items: flex-start; /* 顶部对齐更协调 */
  gap: 40px;
  width: 100%;
}
/* 反转项：左文右图（仅第二组生效） */
.service-item.reverse {
  flex-direction: row; /* 取消 row-reverse，靠 HTML 结构+宽度控制实现左文右图 */
}
/* 图片容器：固定宽度占比，所有项统一 */
.service-img {
  flex: 0 0 45%; /* 图片固定占45%宽度，不挤压/拉伸 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  aspect-ratio: 16/9; /* 统一图片比例，避免尺寸错乱 */
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 图片自适应容器，不变形 */
}
/* 文字容器：占剩余宽度 */
.service-text {
  flex: 1;
  padding: 16px 0;
  max-width: 500px;
}
.service-text h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.service-text p {
  color: #666;
  line-height: 1.8;
}
/* 仅对反转项的文字/图片做顺序调整（核心：左文右图） */
.service-item.reverse .service-text {
  order: 1; /* 文字排前面（左侧） */
  flex: 1;
  text-align: left; /* 确保文字左对齐，符合视觉习惯 */
}
.service-item.reverse .service-img {
  order: 2; /* 图片排后面（右侧） */
  flex: 0 0 45%;
}
/* 移动端适配：所有项改为上下布局 */
@media (max-width: 768px) {
  .service-item, .service-item.reverse {
    flex-direction: column;
    text-align: center;
  }
  .service-img {
    flex: 0 0 auto;
    width: 100%;
  }
  .service-text {
    max-width: 100%;
  }
  /* 移动端取消顺序调整 */
  .service-item.reverse .service-text,
  .service-item.reverse .service-img {
    order: initial;
  }
}

.about {
  padding: 80px 24px;
  position: relative;
}
.about-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.about-container {
  max-width: 1000px;
  margin: 0 auto;
}
.about-card {
  background: rgba(255,255,255,0.9);
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.about-card p {
  color: #666;
  text-align: justify;
}

.scene {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.scene-big, .scene-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.scene-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  color: white;
  padding: 16px;
}
.scene-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.scene-small {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}
@media (max-width: 768px) {
  .scene-grid, .scene-small {
    grid-template-columns: 1fr;
  }
}

.contact {
  padding: 80px 24px;
  background: #E8EEFF;
}
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.contact-card h3 {
  font-size: 20px;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  color: #666;
}
.contact-card input, .contact-card textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  outline: none;
}
.contact-card input:focus, .contact-card textarea:focus {
  border-color: #407BFF;
}
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.footer {
  background: #1A1A2E;
  color: white;
  padding: 60px 24px;
}
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-size: 18px;
  margin-bottom: 20px;
}
.footer-col li {
  margin-bottom: 12px;
  color: #999;
}
.footer-col li a:hover {
  color: #407BFF;
}
.footer-copyright {
  border-top: 1px solid #444;
  padding-top: 24px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}