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

:root {
  --color-white: #ffffff;
  --color-light-gray: #f5f5f0;
  --color-charcoal: #2c2c2c;
  --color-dark-gray: #6b6b6b;
  --font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-charcoal);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* 通用头部导航 */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 5%;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 32px;
  height: 32px;
  position: relative;
}

.logo svg {
  width: 100%;
  height: 100%;
  stroke: var(--color-charcoal);
  fill: none;
  stroke-width: 1.5;
  transition: var(--transition-smooth);
}

.logo:hover svg {
  stroke: var(--color-dark-gray);
}

nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

nav a {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-charcoal);
  transition: var(--transition-smooth);
}

nav a:hover::after {
  width: 100%;
}

/* 首页 - 英雄区 */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.92);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-charcoal);
  padding: 2rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 2px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--color-dark-gray);
  letter-spacing: 0.05em;
  margin-bottom: 3rem;
}

.scroll-hint {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 0.85rem;
  color: var(--color-dark-gray);
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
}

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

/* 系列陈列页 - 布局 */
.gallery-page {
  padding: 8rem 5% 4rem;
  background: var(--color-light-gray);
  min-height: 100vh;
}

.page-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--color-dark-gray);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  gap: 6rem;
}

.gallery-category {
  background: var(--color-white);
  padding: 3rem;
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

.category-main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 2px;
}

.category-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.category-main:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.category-label {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  padding: 0.8rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition-smooth);
}

.category-main:hover .category-label {
  opacity: 1;
  transform: translateY(0);
}

.category-small-grid {
  display: grid;
  gap: 1.5rem;
}

.category-small-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  border-radius: 2px;
}

.category-small-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.category-small-item:hover img {
  transform: scale(1.08);
  filter: brightness(1.08);
}

/* 风格叙事页 - 视差滚动 */
.story-page {
  padding-top: 5rem;
  background: var(--color-white);
}

.story-intro {
  text-align: center;
  padding: 4rem 5%;
  max-width: 800px;
  margin: 0 auto;
}

.story-intro h1 {
  font-size: 2.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.story-intro p {
  font-size: 1rem;
  color: var(--color-dark-gray);
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.story-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.story-background {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.story-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.story-content {
  position: relative;
  z-index: 2;
  padding: 3rem;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(15px);
  border-radius: 2px;
  margin-left: 10%;
}

.story-section:nth-child(even) .story-content {
  margin-left: auto;
  margin-right: 10%;
}

.story-content h2 {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--color-dark-gray);
  letter-spacing: 0.02em;
}

/* 页脚 */
footer {
  padding: 3rem 5%;
  text-align: center;
  background: var(--color-light-gray);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--color-dark-gray);
}

/* 响应式设计 */
@media (max-width: 1199px) {
  .hero-content h1 { font-size: 2rem; }
  .page-header h1 { font-size: 2.2rem; }
  .category-grid { grid-template-columns: 1fr; }
  .story-content { margin-left: 5%; margin-right: 5%; }
}

@media (max-width: 767px) {
  header { padding: 1rem 5%; }
  nav ul { gap: 1.5rem; font-size: 0.85rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.95rem; }
  .page-header h1 { font-size: 1.8rem; }
  .gallery-category { padding: 1.5rem; }
  .category-small-grid { grid-template-columns: 1fr; }
  .story-intro h1 { font-size: 1.8rem; }
  .story-content { padding: 2rem; max-width: 90%; }
  .story-content h2 { font-size: 1.4rem; }
}