/* ============================================
   鳞光屿 Linguang Island - 活动页专属样式
   event.html
   ============================================ */

/* ---------- 活动 Hero 区 ---------- */
.event-hero {
  display: block;
  position: relative;
  padding: 96px 0;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--primary-bg) 100%);
  overflow: hidden;
  min-height: auto;
}

.event-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 2px dashed var(--accent-light);
  border-radius: 50%;
  opacity: 0.5;
}

.event-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border: 2px dashed var(--primary-light);
  border-radius: 50%;
  opacity: 0.3;
}

.event-hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.event-hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.event-hero-img-frame {
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid var(--accent-dark);
  border-radius: var(--radius-lg);
  z-index: 1;
  transform: rotate(-2deg);
}

.event-hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  color: inherit;
  max-width: none;
  margin: 0;
  padding: 0;
}

.event-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary);
  color: var(--text-white);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.event-status::before {
  content: '';
  width: 8px;
  height: 8px;
  background-color: var(--text-white);
  border-radius: 50%;
  animation: eventPulse 2s infinite;
}

@keyframes eventPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.event-hero-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.event-hero-subtitle {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent-dark);
  margin-bottom: 24px;
  transform: rotate(-1deg);
  display: inline-block;
}

.event-hero-desc {
  font-size: 16px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 24px;
}

.countdown-note {
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.event-countdown {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-label {
  font-size: 12px;
  color: var(--text-medium);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.event-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.event-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
}

.event-info-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-dark);
}

.event-info-card-icon svg {
  width: 20px;
  height: 20px;
}

.event-info-card-text .label {
  font-size: 12px;
  color: var(--text-light);
  display: block;
}

.event-info-card-text .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
}

/* ---------- 活动内容区 ---------- */
.event-content {
  padding: 96px 0;
}

.event-content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 64px;
  align-items: start;
}

.event-main-content h2 {
  font-size: 26px;
  margin-bottom: 16px;
  margin-top: 40px;
}

.event-main-content h2:first-child {
  margin-top: 0;
}

.event-main-content p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.9;
  margin-bottom: 16px;
}

/* ---------- 手写体下划线 ---------- */
.hand-underline {
  position: relative;
  display: inline-block;
}

.hand-underline::after {
  content: '';
  position: absolute;
  left: -4%;
  bottom: -6px;
  width: 108%;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10'%3E%3Cpath d='M2,6 Q30,2 60,5 T120,6 T198,4' stroke='%23D48B5C' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* ---------- 活动亮点 ---------- */
.event-highlight-list {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.event-highlight-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  background-color: var(--bg-cream);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-dark);
}

.event-highlight-num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent-dark);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  width: 36px;
}

.event-highlight-text h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: var(--font-sans);
}

.event-highlight-text p {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ---------- 活动时间表 ---------- */
.event-schedule {
  margin: 40px 0;
}

.schedule-timeline {
  position: relative;
  padding-left: 32px;
}

.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='20' viewBox='0 0 2 20'%3E%3Cline x1='1' y1='0' x2='1' y2='20' stroke='%23D48B5C' stroke-width='2' stroke-dasharray='4 4'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
}

.schedule-item {
  position: relative;
  padding-bottom: 24px;
}

.schedule-item:last-child {
  padding-bottom: 0;
}

.schedule-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-cream);
  border: 3px solid var(--accent-dark);
  z-index: 2;
}

.schedule-time {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

.schedule-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.schedule-desc {
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ---------- 详情文本 ---------- */
.detail-text {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.9;
}

.detail-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.detail-text ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--text-medium);
}

/* ---------- 活动侧边栏 ---------- */
.event-sidebar {
  position: sticky;
  top: 100px;
}

.event-booking-card {
  background-color: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.event-booking-header {
  padding: 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
}

.event-booking-header .price-label {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 4px;
}

.event-booking-header .price {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.event-booking-header .price small {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.8;
}

.event-booking-header .seats {
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.event-booking-body {
  padding: 24px;
}

.booking-field {
  margin-bottom: 16px;
}

.booking-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.booking-field input,
.booking-field select,
.booking-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background-color: var(--bg-cream);
  outline: none;
  transition: border-color 0.25s;
}

.booking-field input:focus,
.booking-field select:focus,
.booking-field textarea:focus {
  border-color: var(--primary);
  background-color: var(--bg-white);
}

.booking-field textarea {
  resize: vertical;
  min-height: 84px;
  font-family: inherit;
  line-height: 1.6;
}

.event-booking-body .btn {
  width: 100%;
  margin-bottom: 12px;
}

.booking-note {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.booking-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- 活动画廊 ---------- */
.event-gallery {
  padding: 64px 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
}

.event-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.event-gallery-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}

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

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

.event-gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.35) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.event-gallery-item:hover::after {
  opacity: 1;
}

.event-gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 16px 40px;
  background: linear-gradient(to top, rgba(30, 30, 30, 0.72) 0%, transparent 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.event-gallery-item:hover .event-gallery-caption,
.event-gallery-item:focus .event-gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

.event-gallery-date {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.event-gallery-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.event-gallery-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.event-gallery-item:hover .event-gallery-tag,
.event-gallery-item:focus .event-gallery-tag {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 常见问题 ---------- */
.event-faq {
  padding: 64px 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color 0.25s;
}

.faq-question:hover {
  color: var(--accent-dark);
}

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--accent-dark);
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ---------- 活动页响应式 ---------- */
@media (max-width: 1024px) {
  .event-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .event-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .event-content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .event-sidebar {
    position: static;
    order: -1;
  }

  .event-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .event-info-cards {
    grid-template-columns: 1fr;
  }

  .event-hero-title {
    font-size: 36px;
  }

  .countdown-num {
    font-size: 32px;
  }

  .countdown-item {
    min-width: 60px;
  }

  .event-gallery-caption {
    opacity: 1;
    transform: none;
    padding: 12px 14px 36px;
  }

  .event-gallery-title {
    font-size: 13px;
  }

  .event-gallery-tag {
    opacity: 1;
    transform: none;
    bottom: 10px;
    right: 10px;
    font-size: 11px;
    padding: 3px 10px;
  }
}
