/* 通用样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #333;
  background-color: #fff;
  line-height: 1.5;
  padding-top: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 快捷按钮（返回顶部和下到底部） */
.scroll-buttons {
  position: fixed;
  right: 30px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.scroll-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(231, 231, 231, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.01);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0.4;
  transform: translateY(0);
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 1.5s ease-out;
}

.scroll-button:hover {
  opacity: 1;
  background-color: rgba(211, 223, 231, 0.2);
}

#scroll-top:hover+#scroll-bottom {
  transform: translateY(20px) scale(0.85);
  transition: transform 0.8s ease-out;
}

.scroll-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #696969;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 辅助类：大写粗体 */
.uppercase-bold {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.5px;
}

/* --- 1. 顶部导航 (Header) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 20px 0;
  font-size: 18px;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* 底部区域样式 */
footer {
  text-align: center;
  padding: 20px 10%;
  background-color: #fff;
  border-top: 1px solid #eee;
}

footer p {
  font-size: 14px;
  color: #999;
}

.sub-slogan {
  font-size: 12px;
  color: #aaa;
  margin-top: 8px;
}

/* 返回按钮样式 */
.back-button {
  position: fixed;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(231, 231, 231, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0.4;
  z-index: 999;
  transition: opacity 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.back-button:hover {
  opacity: 1;
  background-color: rgba(211, 223, 231, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.back-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #696969;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media screen and (max-width: 768px) {
  .back-button {
    left: 15px;
    width: 35px;
    height: 35px;
  }
}

@media screen and (max-width: 480px) {
  .back-button {
    left: 10px;
    width: 30px;
    height: 30px;
  }

  .back-button svg {
    width: 14px;
    height: 14px;
  }
}

/* 项目简介样式 */
.profile-name {
  margin-top: 60px;
  margin-bottom: 2px;
  text-align: center;
}

.profile-name h1 {
  font-size: 30px;
  font-weight: bold;
}

.designer-text {
  display: inline-block;
  transition: color 0.3s ease;
  cursor: pointer;
}

.designer-text:hover {
  color: #126e21fa;
}

.case {
  margin-top: 30px;
  margin-bottom: 100px;
  text-align: center;
}

.intro-content {
  color: #888;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
}

/* 增加段落间距 */
.intro-content p {
  margin-bottom: 20px;
  /* 设置段落底部间距 */
}

.intro-content p:last-child {
  margin-bottom: 0;
  /* 最后一个段落不需要底部间距 */
}

/* 项目背景介绍段落样式 */
.project-background {
  font-weight: 200;
  /* 粗细 */
  color: #c0c0c0;
  /* 颜色 */
  font-size: 15px;
  /* 字号 */
  text-align: center;
  /* 居中对齐 */
  padding-bottom: 25px;
  /* 底部内边距，为分隔线留出空间 */
  margin-bottom: 30px !important;
  /* 覆盖原有的 margin-bottom */
  position: relative;
  /* 相对定位，为绝对定位的分隔线做准备 */
}

/* 项目背景介绍分隔线 */
.project-background:after {
  content: "";
  /* 必须有内容才能显示 */
  position: absolute;
  /* 绝对定位 */
  left: 50%;
  /* 居中 */
  bottom: 0;
  /* 底部对齐 */
  width: 80px;
  /* 分隔线宽度 */
  height: 1px;
  /* 分隔线高度 */
  background-color: #ffffff;
  /* 分隔线颜色 */
  transform: translateX(-50%);
  /* 水平居中调整 */
}

.text-container {
  position: relative;
  padding: 40px 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.case-label {
  position: absolute;
  top: 0;
  left: 20px;
  font-size: 12px;
  color: #aaa;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* 案例展示样式 */
.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 70px;
}

.image-container {
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.image-container:hover {
  transform: translateY(-10px);
}

.image-container img {
  width: 100%;
  height: auto;
  display: block;
}

.large-16-9 {
  width: 100%;
  padding-top: 56.25%;
  position: relative;
  border-radius: 0;
}

.large-16-9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.square-large {
  width: 100%;
  padding-top: 100%;
  position: relative;
  border-radius: 0;
}

.square-large img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.small-images-row {
  display: flex;
  gap: 20px;
}

.small-16-9 {
  flex: 1;
  padding-top: 56.25%;
  position: relative;
  border-radius: 0;
}

.small-16-9 img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.icon {
  width: 60%;
  height: 60%;
  border-radius: 0;
}

.main-section {
  margin-bottom: -50px;
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
  .container {
    padding: 20px 15px;
    gap: 15px;
  }

  .small-images-row {
    flex-direction: column;
    gap: 15px;
  }

  .small-16-9 {
    width: 100%;
  }

  .icon {
    width: 80%;
    height: 80%;
  }

  .profile-name {
    margin-top: 30px;
  }

  .case {
    margin-bottom: 50px;
  }

  .text-container {
    padding: 35px 0;
  }

  .case-label {
    left: 15px;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding: 15px 10px;
    gap: 10px;
  }

  .small-images-row {
    gap: 10px;
  }

  .icon {
    width: 90%;
    height: 90%;
  }

  .text-container {
    padding: 30px 0;
  }

  .case-label {
    left: 10px;
    font-size: 11px;
  }
}

/* 第一张图片不需要悬停效果 */
.container>.image-container:first-child {
  transition: none;
}

.container>.image-container:first-child:hover {
  transform: none;
}
