body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: #f6cfc1;
    overflow-x: hidden;
  background-image: url("../images/background.png");
  background-repeat: repeat;      /* ✅ 垂直方向无限延伸 */
  background-size: contain;         /* 图片不会被拉伸变形 */
  background-position: top center;  /* 居中靠上 */
  margin: 0;
  padding: 0;
}


/* ===== Header ===== */
header {
    background-color: #5a5e2c;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    font-size: 1.2em;
    letter-spacing: 1.5px;
    font-family: 'Playfair Display', serif;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #5a5e2c;
}

.logo {
    display: flex;
    align-items: center;     /* ✅ 让图片和文字垂直居中 */
    gap: 0px;               /* 图片与文字间距 */
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.8em;
    font-weight: 700;
    color: #fcd6d6;
}

/* 图片样式 */
.logo-img {
    width: 65px;             /* ✅ 控制 logo 大小（可调） */
    height: auto;
}

.logo a {
    color: #fcd6d6;
    text-decoration: none;
    transition: color 0.3s ease;
}
.logo a:hover {
    color: #fff;
}

/* ===== NAVIGATION ===== */
nav ul.menu {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul.menu li {
  position: relative;
}

nav ul.menu a {
  text-decoration: none;
  color: #fcd6d6;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul.menu a:hover,
nav ul.menu a.active {
  color: #fff;
}


/* ===== Dropdown ===== */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #73733e;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 0;
  top: 100%;
  left: 0;
  min-width: 160px;
  z-index: 100;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 10px 20px;
  text-align: left;
  color: #5a5e2c;
}

.dropdown-content a:hover {
  background-color: #fceda2;
  color: #fff;
}

/* Hover 显示下拉菜单 */
.dropdown:hover .dropdown-content {
  display: block;
}


/* Header */
header, .logo, nav ul li a {
    font-family: 'Playfair Display', serif;
}


/* Main Scene */
.main-scene {
    position: relative;
    width: 100%;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* 元素容器（不再响应鼠标） */
.element {
    position: absolute;
    pointer-events: none; /* 禁用容器的 hover 检测 */
}

/* 图片链接本身响应鼠标 */
.element a {
    display: inline-block;
    position: relative;
    pointer-events: auto; /* ✅ 只有图片可触发 hover */
}

/* 图片样式 */
.element img {
    width: 100%;
    height: auto;
    transition: transform 0.6s ease, filter 0.6s ease;
}

/* Tooltip —— 放到 <a> 里，而不是 .element */
.element a::after {
    content: attr(data-text);
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 247, 240, 0.95);
    color: #5b3c2e;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* tooltip 本身不挡鼠标 */
}
/* 让女孩的提示文字移到头顶左边 */
.girl a::after {
    top: -10px;        /* 往上调 */
    left: 10%;         /* 靠左一点 */
    transform: none;   /* 取消水平居中 */
}


/* Hover 效果 —— 只在图片上触发 */
.element a:hover img {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.15));
}

.element a:hover::after {
    opacity: 1;
}


/* Positioning based on reference image proportions */
.girl {
    width: 55%;
    left: 16%;
    bottom: -5%;
}

/* 黄色玫瑰 */
.flower1 {
    width: 12%;
    left: 42%;
    bottom: 45%;
    z-index: 2;
}

/* 蓝色花 */
.flower2 {
    width:10%;
    left: 53%;
    bottom: 43%;
    z-index: 3;
}

/* 粉色心形花 */
.flower3 {
    width: 15%;
    left: 58%;
    bottom: 34.5%;
}

/* 淡蓝百合 */
.flower4 {
    width: 13.5%;
    left: 64%;
    bottom: 28%;
}

/* Responsive tweak */
@media (max-width: 1000px) {
    .girl { width: 55%; left: 20%; bottom: 5%; }
    .flower1 { width: 10%; left: 53%; bottom: 47%; }
    .flower2 { width: 10%; left: 60%; bottom: 53%; }
    .flower3 { width: 9%; left: 67%; bottom: 45%; }
    .flower4 { width: 12%; left: 74%; bottom: 48%; }
}
@media (max-width: 900px) {
    header {
        flex-direction: column;    /* 导航换到 logo 下面 */
        text-align: center;
        padding: 20px;
    }

    .logo {
        justify-content: center;
        margin-bottom: 10px;
    }

    .logo-img {
        width: 32px;
    }

    nav ul {
        gap: 30px;  /* 间距缩小 */
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column; /* ✅ 小手机屏幕时垂直排列 */
        gap: 15px;
    }

    .logo a {
        font-size: 1.3em;
    }
}



/* ===== About Page Section ===== */
.about-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    font-family: 'Quicksand', sans-serif;
}

.about-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    width: 85%;
    background-color: #faefe6;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    padding: 50px 60px;
}

/* 左边照片 */
.about-photo img {
    width: 280px;
    height: auto;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    
}

/* 右边文字 */
.about-text {
    max-width: 550px;
}

.about-text h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 10px;
    color: #5a5e2c;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: #444;
    margin-top: 0;
}

.about-text .subtitle {
    font-style: italic;
    color: #7a7a7a;
    margin-bottom: 20px;
}

.about-text p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

/* ===== 响应式布局 ===== */
@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 40px 30px;
    }

    .about-photo img {
        width: 220px;
    }

    .about-text {
        max-width: 90%;
    }
}


/* ===== Work Overview Page ===== */

.work-overview {
  padding: 100px 8%;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}

.work-overview h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8em;
  color: #5a5e2c;
  margin-bottom: 20px;
}

.intro-text {
  color: #4a4a4a;
  font-size: 1.1em;
  line-height: 1.7em;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* 分类网格 */
.work-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  justify-items: center;
}

.category-card {
  position: relative;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

.category-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card-text {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  color: #5a5e2c;
  font-family: 'Playfair Display', serif;
  font-size: 1.3em;
  padding: 6px 20px;
  border-radius: 30px;
}



/* ===== Work Page Layout ===== */
.work-page {
  padding: 20px 8%;
  font-family: 'Quicksand', sans-serif;
  text-align: center;
}

.work-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  color: #667542;
  margin-bottom: 20px;
}

.work-intro {
  color: #2e1b10;
  font-size: 1.5em;
  margin-bottom: 20px;
  font-style: italic;
}

/* 作品网格 */
/* Gallery 总体布局 */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: flex-start; /* ✅ 顶部对齐，防止空白不齐 */
  padding: 60px 0;
}

/* 每个作品卡片 */
.work-item {
  position: relative;
  width: 350px;            /* 你可以根据页面宽度调整大小 */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  background-color: #f8d8cd; /* 柔和背景防止透明后太突兀 */
}

.work-item:hover {
  transform: translateY(-6px);
}

/* 图片部分 */
.work-item img {
  width: 100%;
  height: auto;           /* ✅ 保持原始比例 */
  display: block;
  transition: opacity 0.5s ease;
}

.work-item:hover img {
  opacity: 0.3;           /* ✅ 鼠标悬停时变透明 */
}

/* 覆盖层上的标题 */
.overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.8);
  color: #5a5e2c;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.3em;
  padding: 8px 20px;
  border-radius: 25px;
  opacity: 0;             /* 默认不显示 */
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.work-item:hover .overlay {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05); /* ✅ 轻微放大出现 */
}


/* ===== 通用结构 ===== */
.storybook-page {
  font-family: 'Quicksand', sans-serif;
  padding: 20px 8%;
  text-align: center;
}

.storybook-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3em;
  color: #5a5e2c;
  margin-bottom: 20px;
}

.intro-text {
  max-width: 700px;
  margin: 0 auto 60px;
  color: #4a4a4a;
  font-size: 1.5em;
  line-height: 1.6em;
}

/* ===== 每个 section ===== */
.section {
  margin-bottom: 100px;
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: #5a5e2c;
  margin-bottom: 10px;
}

.section-intro {
  color: #4a4a4a;
  font-style: italic;
  font-size: 1em;
  margin-bottom: 25px;
}

/* ===== 横向滚动区通用样式 ===== */
.gallery-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-gallery {
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
}

.scroll-gallery::-webkit-scrollbar {
  display: none; /* 隐藏滚动条 */
}

.scroll-gallery img {
  width: 400px;
  height: auto;
  flex-shrink: 0;
  scroll-snap-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

/* ===== 左右按钮 ===== */
.scroll-btn {
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2em;
  padding: 8px 16px;
  border-radius: 50%;
  color: #5a5e2c;
  cursor: pointer;
  transition: background 0.3s ease;
  position: absolute;
  z-index: 2;
}

.scroll-btn:hover {
  background-color: #fff;
}

.scroll-btn.left { left: -40px; }
.scroll-btn.right { right: -40px; }


/* ===== Animation Section 垂直排列版本 ===== */
.animation-section {
  text-align: center;
  margin-bottom: 100px;
}

/* Section 标题 */
.animation-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: #5a5e2c;
  margin-bottom: 10px;
}

/* 简介文字 */
.animation-section .section-intro {
  color: #4a4a4a;
  font-style: italic;
  font-size: 1em;
  margin-bottom: 40px;
}

/* 垂直排列视频 */
.video-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;  /* 视频之间的间距 */
}

/* 每个视频块 */
.video-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 视频标题 */
.video-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5em;
  color: #5a5e2c;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 视频样式 */
.animation-section video {
  width: 800px;
  max-width: 90%;
  border-radius: 15px;
  background-color: #000;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.animation-section video:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* 响应式适配手机 */
@media (max-width: 768px) {
  .animation-section video {
    width: 100%;
  }
  .video-title {
    font-size: 1.2em;
  }
}


/* ===== Contact Page ===== */
.contact-page {
  background-color: #f5f2ed;
  font-family: 'Playfair Display', serif;
  color: #2f3d33;
  position: relative;
  overflow-x: hidden;
}

/* 背景插画 */
.contact-bg img {
  position: fixed;
  top: 0;
  height: 100vh;
  object-fit: cover;
  z-index: -1;
}

.bg-left {
  left: 0;
  width: 35%;
}

.bg-right {
  right: 0;
  width: 35%;
}

/* 主体内容 */
.contact-container {
  background-color: rgba(255, 255, 255, 0.95);
  max-width: 700px;
  margin: 100px auto;
  padding: 50px 60px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.contact-container h2 {
  font-size: 2em;
  color: #4c8a78;
  margin-bottom: 15px;
}

.contact-intro {
  font-size: 1em;
  color: #333;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-note {
  font-size: 0.95em;
  color: #444;
  margin-bottom: 40px;
}

.contact-note a {
  color: #4c8a78;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

/* ===== Form ===== */
.contact-form {
  text-align: left;
}

.form-row {
  display: flex;
  gap: 20px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

label {
  font-weight: 500;
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #4c8a78;
  outline: none;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.checkbox-group input {
  margin-right: 10px;
}

.submit-btn {
  background-color: #4c8a78;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 12px 30px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #3a6d5d;
}

/* 响应式 */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .contact-container {
    padding: 30px;
  }

  .bg-left, .bg-right {
    display: none;
  }
}


/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px 0;
  font-size: 0.95em;
  color: #444;
  background-color: rgba(255, 255, 255, 0.7); /* 半透明底色，与背景融合 */
  font-family: 'Playfair Display', serif;
  border-top: 1px solid #ccc;
  margin-top: 60px;
}

footer a {
  color: #5a5e2c;  /* 你网站主题的绿色 */
  text-decoration: none;
  font-weight: 500;
}

footer a:hover {
  text-decoration: underline;
  color: #2f3d1f;
}

