/* 季度主题色变量 */
:root {
  --mist-blue: #9DB4C0;
  --terracotta-pink: #C97064;
  --metallic-silver: #B8B8B8;
  --primary-black: #0A0A0A;
  --primary-white: #FAFAFA;
  --primary-gray: #4A4A4A;
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--primary-white);
  color: var(--primary-black);
  overflow-x: hidden;
  line-height: 1.6;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 导航栏样式 */
.nav-item {
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--primary-black);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-item:hover::after {
  width: 100%;
}

/* 渐进式图片加载 */
.progressive-img {
  filter: blur(10px);
  transition: filter 0.8s ease-out;
}

.progressive-img.loaded {
  filter: blur(0);
}

/* 悬停放大效果 */
.hover-scale {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* 悬停显示细节标签 */
.detail-tag {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover .detail-tag {
  opacity: 1;
  transform: translateY(0);
}

/* 轮播图淡入淡出 */
.carousel-item {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.carousel-item.active {
  opacity: 1;
  position: relative;
}

/* 视差滚动效果 */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* 材质纹理悬停 */
.texture-hover {
  position: relative;
  overflow: hidden;
}

.texture-hover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mist-blue) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.texture-hover:hover::before {
  opacity: 0.3;
}

/* 动态时间轴 */
.timeline-item {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* 网格布局动画 */
.grid-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.grid-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 可展开卡片 */
.expandable-card {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.expandable-card.expanded {
  max-height: 2000px;
}

/* 分屏对比效果 */
.split-view {
  position: relative;
  overflow: hidden;
}

.split-left,
.split-right {
  transition: transform 0.4s ease;
}

.split-view:hover .split-left {
  transform: translateX(-5px);
}

.split-view:hover .split-right {
  transform: translateX(5px);
}

/* 按钮动画 */
.btn-explore {
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.btn-explore::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: var(--primary-black);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-explore:hover::before {
  width: 300px;
  height: 300px;
}

.btn-explore span {
  position: relative;
  z-index: 1;
}

/* 向下滚动箭头动画 */
.scroll-arrow {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* 加载动画 */
.loading-spinner {
  border: 3px solid var(--primary-gray);
  border-top-color: var(--primary-black);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 响应式断点 */
@media (max-width: 768px) {
  .nav-item {
    font-size: 0.9rem;
  }
  
  .carousel-item {
    height: 60vh;
  }
}

@media (max-width: 640px) {
  .grid-item {
    margin-bottom: 1rem;
  }
}

/* 无障碍设计 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 季度主题色应用 */
.theme-mist-blue {
  color: var(--mist-blue);
}

.theme-terracotta-pink {
  color: var(--terracotta-pink);
}

.theme-metallic-silver {
  color: var(--metallic-silver);
}

.bg-theme-mist-blue {
  background-color: var(--mist-blue);
}

.bg-theme-terracotta-pink {
  background-color: var(--terracotta-pink);
}

.bg-theme-metallic-silver {
  background-color: var(--metallic-silver);
}

/* 视频背景容器 */
.video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

/* 360度旋转人台容器 */
.rotate-container {
  position: relative;
  width: 100%;
  height: 600px;
  perspective: 1000px;
}

.rotate-item {
  transition: transform 0.3s ease;
  cursor: grab;
}

.rotate-item:active {
  cursor: grabbing;
}