/* --------------------------------------------------------------------------
   21. 支持我們專頁樣式 (Donation Tabs System & Stacked Helpers)
   -------------------------------------------------------------------------- */
.donation-hero-section {
  padding-top: calc(var(--header-height) + 36px);
  padding-bottom: 40px;
  text-align: center;
}

.donation-tab-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 36px;
  transition: var(--transition-normal);
}

.donation-tab-header {
  background: #faf8f4;
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--border-light);
}

.donation-tab-nav {
  display: flex;
  background: #ede8dc;
  border-radius: var(--radius-full);
  padding: 5px;
  gap: 6px;
  max-width: 100%;
}

.donation-tab-btn {
  flex: 1;
  min-width: 130px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.donation-tab-btn:hover {
  color: var(--primary-gold-dark);
  background: rgba(255, 255, 255, 0.5);
}

.donation-tab-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
}

.donation-tab-content {
  padding: 36px 32px;
}

@media (max-width: 600px) {
  .donation-tab-header {
    padding: 10px;
  }
  .donation-tab-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 4px;
    gap: 4px;
    border-radius: var(--radius-lg);
  }
  .donation-tab-content {
    padding: 24px 18px;
  }
  .donation-tab-btn {
    min-width: 0;
    padding: 10px 4px;
    font-size: 0.82rem;
    flex-direction: column;
    gap: 2px;
    border-radius: var(--radius-md);
  }
  .donation-tab-btn span:first-child {
    font-size: 1.1rem;
  }
}

.donation-tab-pane {
  display: none;
  animation: fadeInPane 0.3s ease;
}

.donation-tab-pane.active {
  display: block;
}

.twqr-tab-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) {
  .twqr-tab-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    justify-items: center;
  }
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 上下排列輔助區塊：需要收據 & 查帳洽詢 */
.donation-support-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
}

.support-subcard {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transition: var(--transition-fast);
}

.support-subcard:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-gold-border);
}

@media (max-width: 768px) {
  .support-subcard {
    padding: 22px 18px;
    flex-direction: column;
    align-items: stretch;
  }
}

.support-subcard-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 280px;
}

.support-subcard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.support-subcard-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.support-subcard-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.donation-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .donation-channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.donation-channel-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  transition: var(--transition-fast);
}

.donation-channel-card.featured {
  border: 2px solid var(--primary-gold);
  box-shadow: 0 8px 30px rgba(184, 130, 49, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
}

.donation-channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.donation-channel-badge {
  position: absolute;
  top: 18px;
  right: 20px;
  background: var(--primary-gold);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.donation-channel-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.donation-channel-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #fdf6ec;
  border: 1px solid var(--primary-gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.donation-channel-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.donation-channel-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.donation-channel-body {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.bank-detail-table {
  width: 100%;
  background: #faf8f4;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.bank-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  flex-wrap: wrap;
  gap: 6px;
}

.bank-detail-label {
  color: var(--text-muted);
  font-weight: 600;
}

.bank-detail-value {
  color: var(--text-primary);
  font-weight: 800;
}

.receipt-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}

@media (max-width: 768px) {
  .receipt-steps-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.receipt-step-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.receipt-step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-gold);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px var(--primary-gold-glow);
}

.receipt-step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.receipt-step-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.receipt-template-card {
  background: #faf8f4;
  border: 1.5px dashed var(--primary-gold);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 24px;
}

@media (max-width: 600px) {
  .receipt-template-card {
    padding: 20px 16px;
  }
}

.receipt-template-code {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 14px 0;
}

/* --------------------------------------------------------------------------
   21.1 TWQR 行動支付掃碼卡片樣式
   -------------------------------------------------------------------------- */
.twqr-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  margin-top: 14px;
}

.twqr-img-wrapper {
  max-width: 240px;
  margin: 0 auto 12px auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition-fast);
}

.twqr-img-wrapper:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.twqr-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.twqr-supported-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.twqr-pay-tag {
  background: #faf8f4;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   21.2 #H.C 公益二手店（二手捐物專區 · 海報融合與羽化樣式）
   -------------------------------------------------------------------------- */
.secondhand-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.06);
  margin-top: 24px;
  overflow: hidden;
  position: relative;
}

.secondhand-integrated-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  align-items: stretch;
  position: relative;
}

.secondhand-poster-col {
  position: relative;
  overflow: hidden;
  background: #f8f6f0;
  cursor: pointer;
  min-height: 520px;
}

.secondhand-poster-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.secondhand-poster-col:hover img {
  transform: scale(1.04);
}

.secondhand-poster-feather {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 140px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 25%, rgba(255, 255, 255, 0.75) 60%, rgba(255, 255, 255, 0.95) 85%, #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}

.secondhand-poster-hint {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 3;
  transition: var(--transition-fast);
}

.secondhand-poster-col:hover .secondhand-poster-hint {
  background: var(--primary-gold-dark);
}

.secondhand-details {
  padding: 36px 36px 36px 8px;
  position: relative;
  z-index: 3;
  margin-left: -32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

@media (max-width: 900px) {
  .secondhand-integrated-grid {
    grid-template-columns: 1fr;
  }
  
  .secondhand-poster-col {
    min-height: 240px;
    max-height: 300px;
  }

  .secondhand-poster-hint {
    top: 14px;
    bottom: auto;
    left: 14px;
  }
  
  .secondhand-poster-feather {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 75px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 30%, rgba(255, 255, 255, 0.9) 75%, #ffffff 100%);
  }
  
  .secondhand-details {
    margin-left: 0;
    margin-top: -10px;
    padding: 0 18px 24px 18px;
  }
}

.goods-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.goods-badge {
  background: #fdf6ec;
  border: 1px solid var(--primary-gold-border);
  color: var(--primary-gold-dark);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shipping-info-box {
  background: #faf8f4;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.94rem;
}

.shipping-info-label {
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.shipping-info-val {
  color: var(--text-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notice-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  color: #92400e;
  line-height: 1.65;
}

.notice-box ol {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.notice-box li {
  margin-bottom: 4px;
}

/* 簡易 Lightbox 彈跳放大視窗 */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  cursor: zoom-out;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: scale(1.1);
}

