/* 主页标题高级排版样式 - 与typography.css保持一致 */
.hero-title {
  font-family: var(--font-display, 'Oranienbaum', 'Times New Roman', serif);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 1.5rem;
  position: relative;
  overflow: visible;
  text-transform: none;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* 英文版标题特殊样式 */
.hero-title[lang="en"] .title-line {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title .title-line {
  display: block;
  position: relative;
  margin-bottom: 0.15em;
  transform: translateY(0);
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  line-height: 1.2;
}

.hero-title .title-line:nth-child(1) {
  font-size: 3.5rem;
  font-weight: 200;
  color: #2c3e50;
}

.hero-title .title-line:nth-child(2) {
  font-size: 4.2rem;
  font-weight: 300;
  color: #34495e;
  margin-left: 0.5em;
}

.hero-title .title-line:nth-child(3) {
  font-size: 3.8rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-left: 1em;
}

.hero-title .title-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #c2b3a5, #8e7d6b);
  transition: width 0.8s ease-in-out;
  box-shadow: 0 0 10px rgba(194, 179, 165, 0.3);
}

.hero-title:hover .title-line::after {
  width: 100%;
}

/* 添加微妙的文字阴影效果 */
.hero-title .title-line {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 悬停时的微妙变换效果 */
.hero-title:hover .title-line {
  transform: translateY(-2px);
  transition: transform 0.3s ease;
}

.hero-subtitle {
  font-family: var(--font-body, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-secondary, #666);
  letter-spacing: 0.05em;
  margin-top: 1rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 767px) {
  .hero-title {
    line-height: 1.05;
    margin-bottom: 0.8rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
  }
  
  .hero-title .title-line {
    line-height: 1.1;
    margin-bottom: 0.08em;
  }
  
  .hero-title .title-line:nth-child(1) {
    font-size: 2rem;
    margin-left: 0;
  }
  
  .hero-title .title-line:nth-child(2) {
    font-size: 2.4rem;
    margin-left: 0.2em;
  }
  
  .hero-title .title-line:nth-child(3) {
    font-size: 2.2rem;
    margin-left: 0.4em;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-top: 0.6rem;
    line-height: 1.5;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-title .title-line:nth-child(1) {
    font-size: 2.8rem;
  }
  
  .hero-title .title-line:nth-child(2) {
    font-size: 3.3rem;
  }
  
  .hero-title .title-line:nth-child(3) {
    font-size: 3rem;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .hero-title .title-line:nth-child(1) {
    font-size: 3.2rem;
  }
  
  .hero-title .title-line:nth-child(2) {
    font-size: 3.8rem;
  }
  
  .hero-title .title-line:nth-child(3) {
    font-size: 3.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-title .title-line:nth-child(1) {
    font-size: 3.5rem;
  }
  
  .hero-title .title-line:nth-child(2) {
    font-size: 4.2rem;
  }
  
  .hero-title .title-line:nth-child(3) {
    font-size: 3.8rem;
  }
}

/* 4K屏幕优化 */
@media (min-width: 2560px) {
  .hero-title {
    line-height: 1.3;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  
  .hero-title .title-line {
    line-height: 1.4;
    margin-bottom: 0.2em;
  }
  
  .hero-title .title-line:nth-child(1) {
    font-size: 4.5rem;
  }
  
  .hero-title .title-line:nth-child(2) {
    font-size: 5.2rem;
  }
  
  .hero-title .title-line:nth-child(3) {
    font-size: 4.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
    margin-top: 1.5rem;
  }
}

/* 动画效果 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title .title-line {
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title .title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.hero-title .title-line:nth-child(2) {
  animation-delay: 0.3s;
}

.hero-title .title-line:nth-child(3) {
  animation-delay: 0.5s;
}

/* 深色主题适配 */
@media (prefers-color-scheme: dark) {
  .hero-title .title-line:nth-child(1) {
    color: #ecf0f1;
  }
  
  .hero-title .title-line:nth-child(2) {
    color: #bdc3c7;
  }
  
  .hero-title .title-line:nth-child(3) {
    color: #95a5a6;
  }
  
  .hero-subtitle {
    color: #bdc3c7;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .hero-title .title-line {
    color: #000;
  }
  
  .hero-subtitle {
    color: #333;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .hero-title .title-line {
    animation: none;
    transition: none;
  }
  
  .hero-title .title-line::after {
    transition: none;
  }
} 
/* Hero Image 响应式样式 */
.hero-image {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: all 0.3s ease;
}

/* 基础样式 - 大屏幕 (桌面) */
.hero-image {
  height: 100vh;
  min-height: 600px;
  max-height: 1080px;
}

/* 平板横屏 (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
  .hero-image {
    height: 90vh;
    min-height: 500px;
    max-height: 800px;
  }
}

/* 平板竖屏 (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-image {
    height: 80vh;
    min-height: 400px;
    max-height: 600px;
  }
}

/* 手机横屏 (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
  .hero-image {
    height: 70vh;
    min-height: 300px;
    max-height: 400px;
  }
}

/* 手机竖屏 (320px - 479px) */
@media (max-width: 479px) {
  .hero-image {
    height: 60vh;
    min-height: 250px;
    max-height: 350px;
  }
}

/* 超小屏幕 (小于320px) */
@media (max-width: 319px) {
  .hero-image {
    height: 50vh;
    min-height: 200px;
    max-height: 300px;
  }
}

/* 4K 和超大屏幕 (2560px+) */
@media (min-width: 2560px) {
  .hero-image {
    height: 100vh;
    min-height: 800px;
    max-height: 1440px;
  }
}

/* 针对特殊宽高比的屏幕优化 */
@media (aspect-ratio: 16/9) {
  .hero-image {
    object-position: center top;
  }
}

@media (aspect-ratio: 4/3) {
  .hero-image {
    object-position: center center;
  }
}

/* 竖屏模式优化 */
@media (orientation: portrait) {
  .hero-image {
    height: 50vh;
    min-height: 300px;
  }
}

/* 横屏模式优化 */
@media (orientation: landscape) {
  .hero-image {
    height: 90vh;
    min-height: 400px;
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 低带宽模式 */
@media (prefers-reduced-data: reduce) {
  .hero-image {
    filter: blur(0.5px);
    transform: scale(0.98);
  }
}

/* 深色模式适配 */
@media (prefers-color-scheme: dark) {
  .hero-image {
    filter: brightness(0.9) contrast(1.1);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .hero-image {
    filter: contrast(1.2) saturate(1.1);
  }
}

/* 动画减少模式 */
@media (prefers-reduced-motion: reduce) {
  .hero-image {
    transition: none;
  }
}

/* Hero Section 容器优化 */
.section-hero {
  position: relative;
  overflow: hidden;
  background-color: #f8f9fa;
}

.section-hero .container-fluid {
  padding: 0;
}

.section-hero .row {
  margin: 0;
}

.section-hero .col-12 {
  padding: 0;
}

/* 加载状态 */
.hero-image[loading] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 2s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 错误状态 */
.hero-image[error] {
  background-color: #f8f9fa;
  border: 2px dashed #dee2e6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image[error]::after {
  content: "图片加载失败";
  color: #6c757d;
  font-size: 1rem;
}

