/* ==========================================
   陪拍网站 - 玫瑰拿铁视觉设计
   版本: V2.0
   ========================================== */

/* ========== Design Tokens ========== */
:root {
  /* 色彩系统 */
  --bg-primary: #FDF6F0;
  --bg-card: #FFFFFF;
  --text-primary: #4A3B3C;
  --text-secondary: #8E7B7D;
  --accent-primary: #D9A0A0;
  --accent-hover: #C48888;
  --accent-soft: #F2D0D0;
  --divider: #F0E4E0;
  --cta-primary: #E85D75;
  --cta-soft: #FADDE1;
  
  /* 间距系统 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-xxl: 96px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(216,159,159,0.12);
  --shadow-glow: 0 0 16px rgba(232,93,117,0.25);
}

/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  animation: pageIn 0.6s ease-out;
}

/* ========== 容器 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ========== 页面淡入动画 ========== */
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== 导航栏 ========== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(253, 246, 240, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
}

/* CTA 按钮 */
.cta-btn {
  background: var(--cta-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: gentlePulse 2.5s infinite;
  animation-delay: 1s;
}

.cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* 汉堡菜单 */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ========== 首页 Banner ========== */
.hero-banner {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url('https://picsum.photos/seed/banner/1920/1080') center/cover;
  margin-top: 0;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(253,246,240,0.9), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl);
  max-width: 900px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: var(--space-md);
  letter-spacing: 8px;
  animation: titleExpand 1s ease-out 0.5s both;
}

@keyframes titleExpand {
  from {
    letter-spacing: 8px;
    opacity: 0;
  }
  to {
    letter-spacing: normal;
    opacity: 1;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮 */
.btn {
  padding: 12px 32px;
  border-radius: 24px;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-block;
}

.btn-primary {
  background: var(--cta-primary);
  color: white;
  animation: gentlePulse 2.5s infinite;
  animation-delay: 1s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
}

/* ========== 通用区块标题 ========== */
.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  font-weight: 500;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

/* ========== 风格卡片 ========== */
.styles-section {
  padding: var(--space-xxl) 0;
}

.styles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.style-card {
  cursor: pointer;
  transition: all 0.35s ease;
}

.style-image {
  width: 100%;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.35s ease;
}

.style-card:hover .style-image {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.style-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  text-align: center;
  margin-top: var(--space-md);
  color: var(--text-primary);
}

/* ========== 作品集 ========== */
.portfolio-section {
  padding: var(--space-xxl) 0;
}

/* 分类筛选 */
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  position: relative;
}

.filter-tab {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: var(--space-sm) 0;
  transition: color 0.3s ease;
  position: relative;
}

.filter-tab.active {
  color: var(--accent-primary);
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-soft));
  transition: all 0.3s ease-in-out;
}

/* 瀑布流网格 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery-image {
  width: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.35s ease;
  position: relative;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.03);
}

/* 骨架屏 */
.skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-soft) 25%, var(--bg-primary) 50%, var(--accent-soft) 75%);
  background-size: 200% 100%;
  animation: skeletonWave 1.5s infinite;
}

@keyframes skeletonWave {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.gallery-image.loaded .skeleton {
  display: none;
}

/* 悬停蒙层 */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(216, 159, 159, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--space-md);
  transition: background 0.35s ease;
  border-radius: var(--radius-md);
}

.gallery-item:hover .gallery-overlay {
  background: rgba(216, 159, 159, 0.65);
}

.overlay-text {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: white;
  text-align: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .overlay-text {
  opacity: 1;
}

.camera-info {
  position: absolute;
  bottom: var(--space-md);
  right: var(--space-md);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery-item:hover .camera-info {
  opacity: 1;
}

/* ========== 关于我 ========== */
.about-section {
  padding: var(--space-xxl) 0;
}

.about-content {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: var(--space-xl);
  align-items: start;
}

.about-photo .photo-placeholder {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.story-block {
  margin-bottom: var(--space-lg);
}

.story-icon {
  font-size: 24px;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.story-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.story-content {
  font-size: 16px;
  color: var(--text-primary);
  line-height: 1.8;
}

/* 设备标签 */
.equipment-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.tag {
  background: var(--accent-soft);
  color: var(--text-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
}

/* ========== 约拍须知 ========== */
.booking-section {
  padding: var(--space-xxl) 0;
}

/* 价格卡片 */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border: 2px solid var(--cta-primary);
}

.popular-badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: var(--accent-soft);
  color: var(--cta-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.pricing-name {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.pricing-price {
  font-family: 'Noto Serif SC', serif;
  font-size: 32px;
  color: var(--accent-primary);
  margin-bottom: var(--space-sm);
}

.pricing-price.highlight {
  color: var(--cta-primary);
}

.price-unit {
  font-size: 16px;
  color: var(--text-secondary);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.pricing-features {
  list-style: none;
  padding: 0;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-primary);
  padding: var(--space-sm) 0;
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

.pricing-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  margin: var(--space-lg) 0;
}

/* FAQ */
.faq-section {
  margin: var(--space-xl) 0;
}

.faq-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: var(--space-md);
  font-size: 16px;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-weight: 500;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
  color: var(--accent-primary);
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--space-md) var(--space-md);
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 微信转化区 */
.wechat-section {
  text-align: center;
  margin-top: var(--space-xl);
}

.wechat-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 24px;
  margin-bottom: var(--space-lg);
}

.wechat-qr {
  margin: 0 auto var(--space-md);
}

.qr-placeholder {
  width: 160px;
  height: 160px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px dashed var(--divider);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
}

.qr-hint {
  font-size: 12px;
  margin-top: var(--space-sm);
}

.wechat-hint {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* 表单 */
.booking-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group input {
  width: 100%;
  padding: 12px var(--space-md);
  border: none;
  border-bottom: 1px solid var(--divider);
  background: transparent;
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
}

.form-group input::placeholder {
  color: var(--text-secondary);
}

.form-submit {
  width: 100%;
  margin-top: var(--space-md);
}

.form-tip {
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--cta-primary);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--bg-card);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.footer-signature {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.footer-quote {
  font-family: 'Noto Serif SC', serif;
  font-size: 16px;
  color: var(--accent-primary);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ========== 灯箱 ========== */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2001;
  transition: all 0.3s ease;
}

.lightbox-close {
  top: var(--space-lg);
  right: var(--space-lg);
}

.lightbox-prev {
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-content {
  position: relative;
  z-index: 2001;
  max-width: 90%;
  max-height: 90vh;
  animation: lightboxIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes lightboxIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.lightbox-info {
  text-align: center;
  margin-top: var(--space-md);
  color: white;
}

#lightbox-caption {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

#lightbox-camera {
  font-size: 14px;
  opacity: 0.8;
}

/* ========== 响应式设计 ========== */

/* 平板端 */
@media (max-width: 1023px) {
  .styles-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-photo .photo-placeholder {
    max-width: 100%;
  }

  .pricing-cards {
    gap: var(--space-md);
  }
}

/* 手机端 */
@media (max-width: 767px) {
  .container {
    padding: 0 var(--space-md);
  }

  /* 导航 */
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--divider);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Banner */
  .hero-banner {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  /* 风格卡片 - 横向滑动 */
  .styles-grid {
    display: flex;
    overflow-x: auto;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    -webkit-overflow-scrolling: touch;
  }

  .style-card {
    min-width: 200px;
    flex-shrink: 0;
  }

  /* 作品集 */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  /* 禁用悬停动效 */
  .gallery-item:hover .gallery-image {
    transform: none;
  }

  .gallery-item:hover .gallery-overlay {
    background: rgba(216, 159, 159, 0);
  }

  .gallery-item:hover .overlay-text,
  .gallery-item:hover .camera-info {
    opacity: 0;
  }

  .gallery-overlay {
    background: rgba(216, 159, 159, 0.4);
  }

  .overlay-text,
  .camera-info {
    opacity: 1;
  }

  .camera-info {
    bottom: var(--space-sm);
    right: var(--space-sm);
  }

  /* 关于我 */
  .section-title {
    font-size: 28px;
  }

  .story-title {
    font-size: 18px;
  }

  .story-content {
    font-size: 15px;
  }

  /* 价格卡片 */
  .pricing-cards {
    grid-template-columns: 1fr;
  }

  /* 灯箱 */
  .lightbox-content {
    max-width: 90%;
  }

  .lightbox-prev {
    left: var(--space-sm);
  }

  .lightbox-next {
    right: var(--space-sm);
  }
}

/* ========== 动效 ========== */

/* 玫红按钮呼吸光晕 */
@keyframes gentlePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 93, 117, 0.4);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(232, 93, 117, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 93, 117, 0);
  }
}
