/* 产品详情页样式 */

/* ===== 往期行程标记 ===== */
.past-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  margin-left: 0.75rem;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(238, 90, 90, 0.3);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.past-tour .tour-hero-image {
  position: relative;
}

.past-tour .tour-hero-image::after {
  content: '往期行程';
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 107, 107, 0.95);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 10;
}

/* ===== 产品头部区域 V2 - 标签不覆盖主图 ===== */
.tour-hero-v2 {
  background: white;
}

/* 移动端：正方形铺满 */
.tour-hero-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  overflow: hidden;
}

.tour-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* PC端：自适应高度，保持原图比例 */
@media (min-width: 768px) {
  .tour-hero-image {
    aspect-ratio: auto;
    max-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  .tour-hero-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  }
}

.tour-hero-info {
  padding: 1.5rem 1rem;
  background: white;
  border-bottom: 1px solid #f0f0f0;
}

.tour-hero-info .container {
  max-width: 1200px;
  margin: 0 auto;
}

.tour-meta-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tour-meta-bar span {
  background: #fff3e0;
  color: #e65100;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.tour-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #1a2340;
}

/* 往期行程标识 */
.past-badge {
  display: inline-block;
  background: #9e9e9e;
  color: white;
  font-size: 0.6em;
  font-weight: 600;
  padding: 0.2em 0.6em;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 0.5em;
}

.tour-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tour-tags .tag {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 0.3rem 0.7rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* 旧版兼容 */
.tour-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 2rem 1rem;
  overflow: hidden;
}

/* ===== 通用区域样式 ===== */
.section {
  padding: 3rem 1rem;
}

.section-alt {
  background: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a2340;
  text-align: center;
}

/* ===== 行程亮点 ===== */
.highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.highlight-item {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.highlight-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FFB800 0%, #FF6B35 100%);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.highlight-item p {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== 设计理念 ===== */
.concept-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  border-left: 4px solid #FFB800;
}

.concept-card p {
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
}

/* ===== 图片画廊 ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

/* ===== 行程详情图 - 全宽平铺 ===== */
.detail-images-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-image-item {
  width: 100%;
  background: white;
  margin-bottom: 0;
}

.detail-image-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* 全宽画廊模式 */
.full-width-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.full-width-gallery .gallery-item {
  aspect-ratio: auto;
  border-radius: 12px;
  overflow: hidden;
}

.full-width-gallery .gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ===== 每日行程 ===== */
.itinerary-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.day-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.day-header {
  background: linear-gradient(135deg, #1a2340 0%, #2d3a5f 100%);
  color: white;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-number {
  background: #FFB800;
  color: #1a1a2e;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
}

.day-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.day-content {
  padding: 1.25rem;
}

.day-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.day-content li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #4a5568;
  border-bottom: 1px solid #f0f0f0;
}

.day-content li:last-child {
  border-bottom: none;
}

.day-content li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #FFB800;
  font-weight: bold;
}

/* ===== 种草官 ===== */
.officials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.official-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  max-width: 320px;
  margin: 0 auto;
  width: 100%;
}

.official-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #FFB800 0%, #FF6B35 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 0.75rem;
}

.official-name {
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 0.25rem;
}

.official-role {
  font-size: 0.8rem;
  color: #FFB800;
}

/* ===== 费用说明 ===== */
.fee-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.fee-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.fee-card h3 {
  font-size: 1.1rem;
  color: #1a2340;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f0f0f0;
}

.fee-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fee-card li {
  padding: 0.5rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.5;
}

.fee-card:first-child li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.fee-card:last-child li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ef4444;
  font-weight: bold;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.faq-q {
  font-weight: 600;
  color: #1a2340;
  margin-bottom: 0.5rem;
}

.faq-a {
  color: #4a5568;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ===== CTA区域 ===== */
.cta-section {
  background: linear-gradient(135deg, #1a2340 0%, #2d3a5f 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

.cta-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-section p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #FFB800 0%, #FF6B35 100%);
  color: white;
  padding: 1rem 2.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,184,0,0.4);
}

/* ===== 响应式优化 ===== */
@media (min-width: 768px) {
  .tour-hero-v2 .tour-hero-image img {
    max-height: 60vh;
  }
  
  .tour-hero-info {
    padding: 2rem;
  }
  
  .tour-hero {
    min-height: 70vh;
    padding: 3rem 2rem;
  }
  
  .tour-title {
    font-size: 2rem;
  }
  
  .section {
    padding: 4rem 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
  
  .fee-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .officials-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .tour-title {
    font-size: 3rem;
  }
  
  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .officials-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
