/* 颜色变量（可根据喜好调整） */
:root {
  --primary: #ff69b4;    /* 主色（粉玫瑰） */
  --secondary: #f8f0f2;  /* 背景色（浅粉） */
  --text: #333;          /* 文字色（深灰） */
  --white: #fff;         /* 白色 */
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: '微软雅黑', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--secondary);
  padding-top: 60px; /* 适配固定导航栏 */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 导航栏（固定顶部） */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 1000;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
}

.navbar-menu {
  display: flex;
  list-style: none;
}

.navbar-menu li {
  margin-left: 30px;
}

.navbar-menu a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
}

.navbar-menu a:hover {
  color: var(--secondary);
}

/* 汉堡菜单（手机端） */
.navbar-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

/* 英雄区（首页 banner） */
.hero {
  height: calc(100vh - 60px); /* 减去导航栏高度 */
  background: url('https://via.placeholder.com/1920x1080?text=Our+Story') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* 倒计时模块 */
.countdown-section {
  padding: 80px 0;
  background-color: var(--white);
  text-align: center;
}

.countdown-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: var(--primary);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.countdown-item {
  background-color: var(--secondary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  min-width: 120px;
}

.countdown-number {
  font-size: 48px;
  font-weight: bold;
  color: var(--primary);
}

.countdown-text {
  font-size: 16px;
  color: var(--text);
}

/* 时光轴模块 */
.timeline-section {
  padding: 80px 0;
  background-color: var(--white);
}

.timeline-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item-right {
  left: 50%;
}

.timeline-item-right::after {
  left: -16px;
}

.timeline-icon {
  position: absolute;
  top: 15px;
  right: -40px;
  width: 30px;
  height: 30px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.timeline-item-right .timeline-icon {
  left: -40px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--secondary);
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.timeline-content h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--primary);
}

.timeline-content h4 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--text);
}

.timeline-content p {
  font-size: 16px;
  margin-bottom: 15px;
  color: var(--text);
}

.timeline-img {
  width: 100%;
  border-radius: 10px;
  margin-top: 15px;
}

/* 照片墙模块 */
.photo-section {
  padding: 80px 0;
}

.photo-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.photo-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-item:hover img {
  transform: scale(1.1);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: rgba(0,0,0,0.7);
  color: var(--white);
  transform: translateY(100%);
  transition: transform 0.3s;
}

.photo-item:hover .photo-overlay {
  transform: translateY(0);
}

/* 留言板模块 */
.message-section {
  padding: 80px 0;
  background-color: var(--white);
}

.message-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary);
}

.message-form {
  max-width: 600px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message-form input, .message-form textarea {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.message-form button {
  padding: 15px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.message-form button:hover {
  background-color: #ff1493; /* 加深主色 */
}

.message-list {
  max-width: 800px;
  margin: 0 auto;
}

.message-item {
  background-color: var(--secondary);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

.message-item .name {
  font-size: 18px;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 10px;
}

.message-item .date {
  font-size: 14px;
  color: #888;
  text-align: right;
}

/* 关于我们模块 */
.about-section {
  padding: 80px 0;
}

.about-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.about-content-reverse {
  flex-direction: row-reverse;
}

.about-img {
  width: 50%;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-text h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.about-text p {
  font-size: 18px;
  color: var(--text);
}

/* 页脚 */
.footer {
  background-color: var(--primary);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer .social-links {
  margin-top: 20px;
}

.footer .social-links a {
  color: var(--white);
  font-size: 24px;
  margin: 0 10px;
  transition: color 0.3s;
}

.footer .social-links a:hover {
  color: var(--secondary);
}

/* 响应式适配（手机端） */
@media (max-width: 768px) {
  .navbar-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 20px 0;
  }

  .navbar-menu.show {
    display: flex;
  }

  .navbar-menu li {
    margin: 15px 0;
    text-align: center;
  }

  .navbar-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 18px;
  }

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item-right {
    left: 0;
  }

  .about-img {
    width: 100%;
    margin-bottom: 20px;
  }

  .about-text {
    width: 100%;
  }
}