/* Association Page Styles */
.association-hero {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
  margin-top: 70px;
}

.association-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.association-hero > * {
  position: relative;
  z-index: 2;
}

.association-hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
  margin: 0;
}

.association-hero p {
  font-size: 1.3rem;
  font-weight: 300;
  max-width: 600px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
}

/* Action Cards Section */
.action-cards-section {
  padding: 60px 0;
  background: var(--off-white);
}

.action-cards-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.action-cards-header {
  text-align: center;
  margin-bottom: 40px;
}

.action-cards-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
}

.action-cards-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.action-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.action-card-large {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 1px solid var(--border-color);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.action-card-large:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-blue);
}

.action-card-large[data-tab].tab-active {
  background: var(--gradient-primary);
  color: var(--white);
  border: 1px solid var(--primary-blue);
  box-shadow: var(--shadow-lg);
}

.action-card-large.primary {
  border: 1px solid var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.action-icon-large {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  color: inherit;
}

.action-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: inherit;
}

.action-card-desc {
  font-size: 0.85rem;
  opacity: 0.9;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Hotels Section */
.hotels-section-enhanced {
  padding: 80px 0;
  background: var(--surface);
}

.hotels-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.hotel-card-enhanced {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.hotel-card-enhanced:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.hotel-card-image-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--off-white);
}

.hotel-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hotel-card-enhanced:hover .hotel-card-image-wrapper img {
  transform: scale(1.08);
}

.hotel-card-content {
  padding: 20px;
}

.hotel-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.hotel-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.hotel-price-tag {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--secondary-orange);
}

.hotel-features {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.hotel-feature-badge {
  padding: 4px 12px;
  background: rgba(30, 95, 168, 0.1);
  color: var(--primary-blue);
  font-size: 0.75rem;
  border-radius: var(--radius-full);
}

.association-tab-panels { margin-top: 20px; }
.association-tab-panel { display: none; }
.association-tab-panel.active { display: block; }

.news-inline { display: grid; gap: 16px; }
.news-inline-card { background: var(--surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); }
.news-inline-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.news-inline-date { font-size: 0.85rem; color: var(--text-muted); }
.news-inline-badge { padding: 4px 10px; background: var(--tag-bg); color: var(--primary-blue); border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 700; }
.news-inline-title { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 6px; }
.news-inline-content { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.tickets-inline {
  display: grid;
  gap: 24px;
}

/* ========== 票券卡片樣式 ========== */
.ticket-card {
  display: flex;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticket-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* 左側 - 圖片與資訊 */
.ticket-card-left {
  display: flex;
  flex: 1;
  min-width: 0;
}

.ticket-card-image {
  width: 200px;
  min-width: 200px;
  height: 180px;
  overflow: hidden;
}

.ticket-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-card-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.ticket-card-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.ticket-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ticket-card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.ticket-perk {
  padding: 4px 10px;
  background: rgba(30, 95, 168, 0.1);
  color: var(--primary-blue);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

/* 適用飯店 */
.ticket-card-hotels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.ticket-hotels-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-right: 2px;
}

.ticket-hotel-tag {
  padding: 3px 8px;
  background: var(--off-white);
  color: var(--text-muted);
  font-size: 0.7rem;
  border-radius: 10px;
  white-space: nowrap;
}

.ticket-hotel-tag.more {
  background: rgba(230, 126, 34, 0.1);
  color: var(--secondary-orange);
  font-weight: 600;
}

/* 中間分隔線 (鋸齒效果) */
.ticket-card-divider {
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 8px,
    var(--border-color) 8px,
    var(--border-color) 16px
  );
  position: relative;
  margin: 16px 0;
}

.ticket-card-divider::before,
.ticket-card-divider::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--off-white);
  border-radius: 50%;
}

.ticket-card-divider::before {
  top: -26px;
}

.ticket-card-divider::after {
  bottom: -26px;
}

/* 右側 - 價格與購買 */
.ticket-card-right {
  width: 160px;
  min-width: 160px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.ticket-card-discount {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 20px;
}

.ticket-card-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.ticket-card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary-orange);
}

.ticket-card-actions {
  margin-top: 8px;
}

.ticket-card-actions .btn {
  white-space: nowrap;
}

/* 票根裝飾 */
.ticket-card-stub {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark, #1a4d7c) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ticket-stub-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* 空狀態訊息 */
.empty-message {
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  grid-column: 1 / -1;
}

/* ========== 票券卡片 RWD ========== */
@media (max-width: 768px) {
  .ticket-card {
    flex-direction: column;
  }

  .ticket-card-left {
    flex-direction: column;
  }

  .ticket-card-image {
    width: 100%;
    height: 180px;
  }

  .ticket-card-divider {
    width: 100%;
    height: 2px;
    margin: 0;
    background: repeating-linear-gradient(
      to right,
      transparent,
      transparent 8px,
      var(--border-color) 8px,
      var(--border-color) 16px
    );
  }

  .ticket-card-divider::before,
  .ticket-card-divider::after {
    top: 50%;
    transform: translateY(-50%);
  }

  .ticket-card-divider::before {
    left: -10px;
    top: 50%;
  }

  .ticket-card-divider::after {
    right: -10px;
    left: auto;
    top: 50%;
  }

  .ticket-card-right {
    width: 100%;
    padding: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .ticket-card-stub {
    width: 100%;
    height: 28px;
    position: relative;
  }

  .ticket-stub-text {
    writing-mode: horizontal-tb;
    letter-spacing: 4px;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .action-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .hotels-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .association-hero {
    height: 300px;
    margin-top: 60px;
  }

  .association-hero h1 {
    font-size: 2rem;
  }

  .association-hero p {
    font-size: 1rem;
  }

  .action-cards-section {
    padding: 40px 0;
  }

  .action-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .action-card-large {
    padding: 24px 20px;
  }

  .action-icon-large {
    font-size: 2.5rem;
    margin-bottom: 12px;
  }

  .action-card-title {
    font-size: 1rem;
  }

  .action-card-desc {
    font-size: 0.8rem;
  }

  .hotels-section-enhanced {
    padding: 60px 0;
  }

  .hotels-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ticket-inline-card { flex-direction: column; align-items: flex-start; }
  .ticket-inline-actions { width: 100%; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .association-hero {
    height: 250px;
    margin-top: 50px;
  }

  .association-hero h1 {
    font-size: 1.5rem;
  }

  .association-hero p {
    font-size: 0.9rem;
  }

  .action-cards-container {
    padding: 0 16px;
  }

  .action-cards-header h2 {
    font-size: 1.5rem;
  }

  .action-card-large {
    padding: 20px 16px;
  }

  .action-icon-large {
    font-size: 2rem;
  }

  .hotel-card-image-wrapper {
    height: 150px;
  }

  .hotel-content {
    padding: 16px;
  }
}
