﻿body {
}

.info-page {
    background: white;
    padding-bottom: 100px; /* 為footer留出空間 */
}

/* 輪播 Banner 樣式 */
.hero-banner-carousel {
    position: relative;
    overflow: hidden;
}

/* 統一設定所有輪播圖片的高度 */
.hero-banner-carousel .hero-banner,
.hero-banner-carousel .hero-banner-2,
.hero-banner-carousel .hero-banner-3 {
    min-height: 70vh; /* 恢復原本高度 */
}

.hero-banner-carousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

.hero-banner-carousel .carousel-indicators {
    bottom: 20px;
    z-index: 20;
}

.hero-banner-carousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-banner-carousel .carousel-indicators button.active {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.hero-banner-carousel .carousel-control-prev,
.hero-banner-carousel .carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 20;
}

.hero-banner-carousel .carousel-control-prev {
    left: 30px;
}

.hero-banner-carousel .carousel-control-next {
    right: 30px;
}

.hero-banner-carousel .carousel-control-prev:hover,
.hero-banner-carousel .carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.hero-banner-carousel .carousel-control-prev-icon,
.hero-banner-carousel .carousel-control-next-icon {
    width: 24px;
 height: 24px;
}

/* 原有的 hero-banner 樣式保持不變，但調整第二、三張圖片的高度 */
.hero-banner-2 {
  background: url('/image/bannerA.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 50vh; /* 改為50vh，與第一張圖片一致 */
    position: relative;
    display: flex;
 align-items: center;
}

.hero-banner-3 {
 background: url('/image/bannerB.png');
    background-size: cover;
    background-position: center center;
 background-repeat: no-repeat;
    min-height: 50vh; /* 改為50vh，與第一張圖片一致 */
    position: relative;
    display: flex;
    align-items: center;
}

/* 響應式設計 */
@media (max-width: 992px) {
    .hero-banner-carousel .carousel-control-prev,
    .hero-banner-carousel .carousel-control-next {
        width: 50px;
   height: 50px;
  }
    
    .hero-banner-carousel .carousel-control-prev {
      left: 15px;
    }
    
    .hero-banner-carousel .carousel-control-next {
  right: 15px;
    }
    
    .hero-banner-carousel .carousel-indicators {
        bottom: 15px;
    }
}

@media (max-width: 768px) {
    .hero-banner-carousel .carousel-control-prev,
    .hero-banner-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-banner-carousel .carousel-control-prev {
      left: 10px;
    }
    
    .hero-banner-carousel .carousel-control-next {
        right: 10px;
    }
    
    .hero-banner-carousel .carousel-indicators button {
      width: 10px;
        height: 10px;
    }
}

.theme-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.feature-icon i,
.theme-icon i,
.criteria-icon i {
    opacity: 0.8;
}

.competition-overview {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.cta-content {
    background: var(--primary-gradient) !important;
}

.timeline-item,
.prize-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.timeline-item:last-child,
.prize-item:last-child {
    border-bottom: none;
}

.criteria-item {
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.criteria-item:hover {
    background: white;
 box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* 主題區塊樣式 */
.theme-description {
    border-left: 4px solid var(--bs-primary);
    background: rgba(102, 126, 234, 0.05) !important;
}

.feature-highlight {
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.feature-item {
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px);
}

.feature-icon-small {
    width: 60px;
  height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.theme-card .theme-icon {
    transition: all 0.3s ease;
}

.theme-card:hover .theme-icon {
    transform: scale(1.1);
}

/* 報名資格卡片樣式 */
.qualification-card {
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 400px; /* 設定最小高度確保三個卡片一樣高 */
}

.qualification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.qualification-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.qualification-icon {
    transition: all 0.3s ease;
}

.qualification-card:hover .qualification-icon i {
    transform: scale(1.1);
}

.info-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.info-item:last-child {
    border-bottom: none;
}

/* 競賽流程卡片樣式 */
.process-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.process-icon {
    transition: all 0.3s ease;
}

.process-card:hover .process-icon i {
    transform: scale(1.1);
}

.submission-item {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.submission-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.judges-list .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.scoring-criteria .criteria-item {
  border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.scoring-criteria .criteria-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* 第二階段樣式 */
.final-stage-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.final-stage-card:hover {
  transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.final-icon {
    transition: all 0.3s ease;
}

.final-stage-card:hover .final-icon i {
    transform: scale(1.1);
}

.presentation-item {
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.presentation-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.feature-badge {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
 transition: all 0.3s ease;
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.ceremony-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.ceremony-item:last-child {
    border-bottom: none;
}

/* 獎勵設置樣式 */
.awards-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

/* 獎項表格樣式 */
.awards-table-wrapper {
    margin: 2rem 0;
}

.awards-table {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    border: none;
}

.awards-table thead th {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 1.5rem 1rem;
    font-size: 1.1rem;
    text-align: center;
    vertical-align: middle;
    font-weight: 600;
}

.awards-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 2px solid #f8f9fa;
}

.awards-table tbody tr:hover {
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.08) 0%, rgba(13, 71, 161, 0.08) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.awards-table tbody tr:last-child {
    border-bottom: none;
}

.awards-table td {
    padding: 1.5rem 1rem;
    border: none;
    vertical-align: middle;
    font-size: 1rem;
}

.award-details-list {
    line-height: 1.6;
}

.award-item-detail {
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.award-item-detail .fw-bold {
    color: #333 !important;
}

/* 修正冠軍、亞軍、季軍顏色 */
.award-item-detail .text-warning {
    color: #f57c00 !important;
    font-weight: 700 !important;
}

.award-item-detail .text-secondary {
    color: #424242 !important;
    font-weight: 700 !important;
}

.award-item-detail .fw-bold[style*="color: #cd7f32"] {
    color: #bf6000 !important;
    font-weight: 700 !important;
}

.special-award {
    background: rgba(255, 248, 220, 0.3);
}

.special-award:hover {
    background: rgba(255, 248, 220, 0.5) !important;
}

/* 響應式設計 */
@media (max-width: 768px) {
    .awards-table td {
        padding: 1rem 0.75rem;
      font-size: 0.9rem;
    }
    
    .award-item-detail {
      font-size: 0.85rem;
    }
}

.award-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.award-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.award-icon {
    transition: all 0.3s ease;
}

.award-card:hover .award-icon i {
    transform: scale(1.2) rotate(5deg);
}

.prize-amount {
font-family: 'Arial', sans-serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.award-item {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.special-award-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.special-award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.special-award-icon {
    transition: all 0.3s ease;
}

.special-award-card:hover .special-award-icon i {
    transform: scale(1.1);
}

.special-prize-amount {
    font-family: 'Arial', sans-serif;
}

/* 報名流程樣式 */
.registration-process {
  background: white;
}

.registration-step-card {
transition: all 0.3s ease;
    overflow: hidden;
}

.registration-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.step-icon {
    transition: all 0.3s ease;
}

.registration-step-card:hover .step-icon i {
    transform: scale(1.1);
}

.step-content {
    line-height: 1.6;
}

/* 參賽規則樣式 */
.competition-rules {
    background: #f8f9fa;
}

.rules-container {
    max-width: 100%;
}

.rule-item {
    transition: all 0.3s ease;
    overflow: hidden;
}

.rule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rule-item .card-header {
    border-bottom: 2px solid rgba(0,0,0,0.1);
}

.rule-item .card-body {
    line-height: 1.6;
}

.rule-item ul li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* 響應式設計 - 參賽規則 */
@media (max-width: 768px) {
    .rule-item .card-body {
        padding: 1rem !important;
    }
    
    .rule-item h6 {
        font-size: 0.9rem;
    }
    
    .rule-item p {
        font-size: 0.85rem;
    }
}

/* 廣告區塊樣式 */
.advertisement-section {
    padding: 3rem 0 2rem 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.advertisement-card {
    position: relative;
    overflow: hidden;
 border-radius: 12px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    background: white;
    max-width: 280px;
  margin: 0 auto;
    aspect-ratio: 9 / 13;
}

.advertisement-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.advertisement-image {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 12px;
    transition: all 0.4s ease;
    object-fit: cover;
    cursor: pointer; /* 添加點擊指標 */
}

.advertisement-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.advertisement-card:hover .advertisement-image {
    transform: scale(1.05);
}

/* 添加點擊效果 */
.advertisement-card:active {
transform: translateY(-5px) scale(0.98);
}

/* 圖片放大預覽模態框樣式 */
.image-modal {
    display: none;
    position: fixed;
  z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
    top: 50%;
    transform: translateY(-50%);
text-align: center;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease-out;
}

.image-modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 35px;
font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
  z-index: 10000;
}

.image-modal-close:hover {
    color: #ff6b6b;
}

.modal-caption {
    color: white;
    font-size: 18px;
    margin-top: 15px;
    font-weight: 500;
}


/* Instagram 連結卡片樣式 */
.bg-gradient-ig {
    background: linear-gradient(135deg, #f9ce34 0%, #ee2a7b 33%, #6228d7 67%, #833ab4 100%) !important;
    position: relative;
    overflow: hidden;
    min-height: 250px;
}

    .bg-gradient-ig::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
        transform: translateX(-100%);
        animation: shimmer 3s infinite;
    }

    .bg-gradient-ig:hover {
        transform: scale(1.02);
        box-shadow: 0 15px 40px rgba(238, 42, 123, 0.3);
    }

        .bg-gradient-ig:hover .fab {
            transform: scale(1.1) rotate(10deg);
            animation: bounce 1s infinite;
        }

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: scale(1.1) translateY(0) rotate(10deg);
    }

    40% {
        transform: scale(1.1) translateY(-10px) rotate(10deg);
    }

    60% {
        transform: scale(1.1) translateY(-5px) rotate(10deg);
    }
}

/* 響應式設計 - Instagram 卡片 */
@media (max-width: 768px) {
    .bg-gradient-ig {
        min-height: 200px;
    }

        .bg-gradient-ig h5 {
            font-size: 1.1rem;
        }

        .bg-gradient-ig p {
            font-size: 0.9rem;
        }

        .bg-gradient-ig .fab {
            font-size: 3rem !important;
        }
}



@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 響應式設計 - 廣告區塊 */
@media (max-width: 992px) {
    .advertisement-section {
        padding: 2rem 0 1.5rem 0;
    }
    
    .advertisement-card {
        max-width: 250px;
    }
    
    .image-modal-content {
   width: 95%;
        padding: 15px;
    }
    
    .modal-image {
 max-height: 70vh;
    }
}

@media (max-width: 768px) {
    .advertisement-section {
      padding: 1.5rem 0 1rem 0;
    }
    
    .advertisement-card {
        max-width: 200px;
        margin-bottom: 1.5rem;
    }
    
    .advertisement-image {
    aspect-ratio: 2.5/3.5; /* 手機版稍微調整比例 */
    }
    
    .image-modal-content {
        width: 95%;
        padding: 10px;
        top: 45%;
    }
    
    .modal-image {
 max-height: 60vh;
    }
  
    .image-modal-close {
        font-size: 28px;
        right: 15px;
     top: 5px;
    }
    
    .modal-caption {
        font-size: 16px;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .advertisement-card {
  max-width: 180px;
    }
    
    .modal-image {
        max-height: 50vh;
    }
}

