/* 主题色变量 */
:root {
  --main-bg: #181818;
  --main-fg: #f5f5f5;
  --accent-blue: #3a466e;
  --accent-ochre: #bfa77a;
  --frame-gray: #222;
  --frame-radius: 32px;
  --section-padding: 8vh 0;
  --transition: 0.4s cubic-bezier(.4,2,.6,1);
}

body {
  background: var(--main-bg);
  color: var(--main-fg);
  font-family: 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

#gallery {
  width: 100vw;
  overflow: hidden;
}

.artwork-section {
  min-height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  padding: var(--section-padding);
  box-sizing: border-box;
  scroll-snap-align: start;
  position: relative;
}

.artwork-image-frame {
   max-height: 400px; 
  background: var(--frame-gray);
  border-radius: var(--frame-radius);
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
  padding: 3vw;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 160px;
  max-width: 40vw;
  max-height: 40vw;
  aspect-ratio: 1/1;
  transition: transform var(--transition), box-shadow var(--transition);
}

.artwork-image {
  width: 50%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 16px rgba(58,70,110,0.08);
  background: var(--main-bg);
}

.artwork-section:hover .artwork-image-frame,
.artwork-section:focus-within .artwork-image-frame {
  transform: rotateZ(-2deg) scale(1.03);
  box-shadow: 0 8px 48px rgba(58,70,110,0.18);
}

.artwork-info {
  max-width: 32vw;
  display: flex;
  flex-direction: column;
  gap: 2.5vh;
  justify-content: center;
}

.artwork-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--main-fg);
  margin: 0 0 1vh 0;
  letter-spacing: 0.04em;
}

.artwork-desc {
  font-size: 1.1rem;
  color: #bfc2c7;
  margin: 0 0 2vh 0;
  line-height: 1.7;
}

.artwork-3d {
  background: #191c22;
  border-radius: 12px;
  padding: 0.5vw;
  margin: 2vh 0;
  box-shadow: 0 2px 12px rgba(58,70,110,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: unset;
  width: 100%;
  max-width: 1000px;
}

.artwork-3d iframe {
  width: 100%;
  min-height: 400px;/* 桌面端最小高度 */
  height: 60vw; /* 高度随宽度自适应 */
  max-height: 600px; /* 可选，防止过高 */
  border: none;
}
@media (max-width: 600px) {
  .artwork-3d iframe {
    min-height: 400px;  /* 手机端最小高度 */
    height: 60vw;
  }
}

.artwork-value {
  font-size: 1.2rem;
  color: var(--accent-ochre);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-top: 1vh;
}

@media (max-width: 900px) {
  .artwork-section {
    flex-direction: column;
    gap: 4vh;
    padding: 6vh 0;
  }
  .artwork-info, .artwork-image-frame {
    max-width: 90vw;
    min-width: 220px;
  }
  .artwork-3d {
    max-width: 100vw;
    padding: 0.5vw;
  }
  
}

html, body, #gallery {
  scroll-snap-type: y mandatory;
}

.artwork-section {
  scroll-snap-align: start;
} 