/* 英雄区域样式 */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  padding: 150px 0;
  margin-top: -70px; /* 抵消body的padding-top */
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Hero区域单独使用钢铁背景图片 */
.hero {
  --hero-brightness: 0.8; /* 默认亮度值，将通过JS动态调整 */
  --hero-background-y: 0px; /* 背景Y轴位置，用于视差效果 */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../../img/steel-bg.jpg');
  background-size: cover;
  background-position: center calc(50% + var(--hero-background-y, 0px));
  z-index: -1;
  filter: brightness(var(--hero-brightness)) contrast(1.1);
  transition: background-position 0.1s ease-out;
  /* 确保背景图片显示 */
  opacity: 1;
  visibility: visible;
}

/* 新增：添加底部过渡渐变效果 - 与统一背景融合 */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom, 
                            rgba(0, 0, 0, 0) 0%, 
                            rgba(25, 79, 105, 0.5) 50%,
                            rgba(5, 28, 44, 0.9) 100%);
  z-index: 1;
  pointer-events: none;
}

/* 背景已经移到::before伪元素中 */

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 2;
}

/* 不锈钢按钮样式 - 从Vue项目转换而来 */
#steel-btn {
  min-width: 200px;
  max-width: 400px;
  width: auto;
  padding: 0.6em 2em;
  height: auto;
  font-size: calc(1.5rem + 0.5vw);
  border-radius: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.9);
  border-left: 2px solid rgba(255, 253, 253, 0.776);
  border-right: 2px solid rgba(255, 253, 253, 0.7);
  border-bottom: 2px solid rgba(255, 253, 253, 0.7);
  display: inline-block;
  position: relative;
  margin: 20px auto 0;
  background-color: #808080;
  box-shadow: 8px 0px 40px rgba(0, 0, 0, 0.8);
  font-weight: bold;
  text-shadow: 0px 1px 1px #ffffff, 0px 1px 1px #000000ba;
  color: rgba(14, 14, 14, 0.915);
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#steel-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 -4px 10px rgba(0, 0, 0, 0.2), inset 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* 备用的真实钢材效果 */
.steel-texture {
  background: linear-gradient(135deg, 
    #a8a9ad 0%, 
    #d1d1d3 20%, 
    #f5f5f7 38%, 
    #d7d7da 55%, 
    #a8a9ad 70%, 
    #8d8e90 100%);
  position: relative;
  overflow: hidden;
}

.steel-texture::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(45deg, 
      rgba(255,255,255,0.05), 
      rgba(255,255,255,0.05) 1px, 
      transparent 1px, 
      transparent 5px),
    repeating-linear-gradient(-45deg, 
      rgba(255,255,255,0.05), 
      rgba(255,255,255,0.05) 1px, 
      transparent 1px, 
      transparent 5px);
  z-index: 1;
}

.steel-texture::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255,255,255,0.4) 0%, 
    rgba(255,255,255,0) 50%, 
    rgba(255,255,255,0.4) 100%);
  z-index: 2;
}

/* 拉丝不锈钢效果 */
.brushed-steel {
  background: linear-gradient(to right, 
    #c0c0c0 0%, 
    #e8e8e8 25%, 
    #c0c0c0 50%, 
    #e8e8e8 75%, 
    #c0c0c0 100%);
  position: relative;
  overflow: hidden;
}

.brushed-steel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(90deg, 
      rgba(255,255,255,0), 
      rgba(255,255,255,0.1) 1px, 
      rgba(255,255,255,0.1) 2px, 
      rgba(255,255,255,0) 3px);
  z-index: 1;
}

.brushed-steel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(255,255,255,0.4) 0%, 
    rgba(255,255,255,0) 40%, 
    rgba(0,0,0,0.1) 60%, 
    rgba(0,0,0,0.2) 100%);
  z-index: 2;
}

/* 镜面不锈钢效果 */
.mirror-steel {
  background: linear-gradient(135deg, 
    #7d7e80 0%, 
    #d9d9dc 20%, 
    #ffffff 50%, 
    #d9d9dc 80%, 
    #7d7e80 100%);
  position: relative;
  overflow: hidden;
}

.mirror-steel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at center, 
    rgba(255,255,255,0.4) 0%, 
    rgba(255,255,255,0) 70%);
  z-index: 2;
}

/* 用于按钮自适应文字长度的响应式样式 */
@media (max-width: 768px) {
  #steel-btn {
    min-width: 180px;
    max-width: 300px;
    font-size: calc(1.2rem + 0.5vw);
    padding: 0.5em 1.5em;
  }
}

@media (max-width: 480px) {
  #steel-btn {
    min-width: 160px;
    max-width: 260px;
    font-size: 1.2rem;
    padding: 0.5em 1.2em;
    margin: 15px auto 0;
  }
}

@media (min-width: 1200px) {
  #steel-btn {
    min-width: 220px;
    max-width: 450px;
    font-size: 2rem;
  }
}

/* 添加按钮容器样式，确保居中 */
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
} 