/* 
 * 全局样式配置
 * 遵循极简现代设计风格
 * 配色：中性色调（米白、浅灰、深灰）+ 玫瑰金点缀
 */

:root {
  /* 调色板定义 */
  --color-bg-primary: #F7F7F5; /* 米白底色 */
  --color-bg-white: #FFFFFF;
  --color-text-main: #2D2D2D; /* 深灰主字 */
  --color-text-sub: #757575;  /* 浅灰副字 */
  --color-accent: #C8A47E;    /* 玫瑰金/香槟金点缀 */
  
  /* 字体栈：优先现代无衬线字体 */
  --font-stack: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

/* 基础设置 */
body {
  font-family: var(--font-stack);
  background-color: var(--color-bg-primary);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased; /* iOS字体平滑 */
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  opacity: 0;
  animation: pageLoadFadeIn 0.6s ease-out forwards;
}

/* 页面加载淡入动画 */
@keyframes pageLoadFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* 通用过渡效果 */
.transition-base {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 图片容器与悬停效果 */
.img-container {
  overflow: hidden;
  position: relative;
  background-color: #E5E5E5; /* 图片加载占位色 */
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s ease;
  display: block;
}

.img-container:hover img {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* 轮播图特定样式 */
.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.35); /* 半透明黑色遮罩 */
  position: absolute;
  inset: 0;
  z-index: 10;
}

.hero-content {
  position: absolute;
  z-index: 20;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 100%;
  max-width: 800px;
}

/* 文字排版增强 */
.text-tracking-wide {
  letter-spacing: 0.15em;
}

.text-gold {
  color: var(--color-accent);
}

.section-title {
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* 导航栏样式 */
.nav-link {
  position: relative;
  display: inline-block;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-text-main);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 网格布局辅助 (Tailwind grid gap 补充) */
.grid-gap-custom {
  gap: 2rem; 
}

/* 隐藏滚动条但允许滚动 (可选) */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* 风格灵感页 - 图文交错响应式调整 */
@media (max-width: 768px) {
  .inspiration-block {
    flex-direction: column !important;
  }
  .inspiration-block > * {
    width: 100% !important;
  }
}