.taichung115-section {
    background: linear-gradient(180deg, #f2d4f2 0%, #fffaff 50%, #f9ebf1 100%);
    letter-spacing: 2px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* 優化後的背景斜紋 - 效能更佳 */
.taichung115-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 定義一個 8x8 像素的小方塊圖樣 */
    background-image: linear-gradient(45deg,
            rgba(255, 255, 255, 0.2) 25%,
            transparent 25%,
            transparent 50%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0.2) 75%,
            transparent 75%,
            transparent);
    background-size: 8px 8px;
    /* 這裡控制斜紋的疏密度 */
    pointer-events: none;
    z-index: 1;
    /* 效能優化：強制開啟 GPU 合成層 */
    transform: translateZ(0);
}

@media (max-width: 768px) {
    .taichung115-section::after {
        background-size: 15px 15px;
        /* 手機版稍微放大斜紋，減少視覺雜亂 */
    }
}

/* 豐富背景裝飾系統 */
.bg-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    /* 提高到 3 以便部分裝飾顯示在卡片之上 */
    overflow: hidden;
}

.bg-decorations .heart,
.bg-decorations .flower {
    position: absolute;
    opacity: 0.15;
    animation: floating-complex 10s ease-in-out infinite;
    user-select: none;
    /* 效能優化：提升合成層並防止閃爍 */
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 不同類型的裝飾 */
.bg-decorations .heart {
    color: #e95295;
    font-size: 40px;
}

.bg-decorations .flower {
    color: #f5c358;
    font-size: 35px;
}

/* 具體位置與大小 */
.bg-decorations .h1 {
    top: 5%;
    left: 15%;
    font-size: 100px !important;
    animation-duration: 12s !important;
}

.bg-decorations .h2 {
    top: 45%;
    left: 8%;
    font-size: 150px !important;
    opacity: 0.05 !important;
    animation-delay: -2s !important;
}

.bg-decorations .h3 {
    bottom: 20%;
    left: 12%;
    font-size: 70px !important;
    animation-delay: -5s !important;
}

.bg-decorations .h4 {
    top: 25%;
    right: 15%;
    font-size: 50px !important;
    opacity: 0.1 !important;
}

.bg-decorations .h5 {
    top: 18%;
    left: 36%;
    font-size: 60px !important;
    opacity: 0.12 !important;
}

.bg-decorations .h6 {
    bottom: 25%;
    right: 5%;
    font-size: 80px !important;
    opacity: 0.08 !important;
}

.bg-decorations .h7 {
    bottom: 25%;
    left: 50%;
    font-size: 80px !important;
    opacity: 0.08 !important;
}

.bg-decorations .f1 {
    top: 65%;
    right: 18%;
    font-size: 110px !important;
    opacity: 0.12 !important;
    animation-delay: -1s !important;
}

.bg-decorations .f2 {
    top: 10%;
    left: 45%;
    font-size: 50px !important;
    animation-duration: 18s !important;
}

.bg-decorations .f3 {
    bottom: 10%;
    right: 35%;
    font-size: 40px !important;
    opacity: 0.08 !important;
}

.bg-decorations .f4 {
    top: 30%;
    left: 35%;
    font-size: 45px !important;
    opacity: 0.14 !important;
}

.bg-decorations .f5 {
    bottom: 13%;
    left: 30%;
    font-size: 60px !important;
    opacity: 0.10 !important;
}

.bg-decorations .f6 {
    top: 43%;
    right: 30%;
    font-size: 60px !important;
    opacity: 0.10 !important;
}

@keyframes floating-complex {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    }

    33% {
        transform: translate3d(30px, -50px, 0) rotate(15deg) scale(1.1);
    }

    66% {
        transform: translate3d(-15px, -30px, 0) rotate(-10deg) scale(0.95);
    }
}

.taichung115-section .container {
    position: relative;
    z-index: 2;
    /* 效能優化：限制重繪區域 */
    contain: layout;
}

/* 頂部 Banner */
.top-banner {
    width: auto;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    text-align: center;
}

.top-banner:hover {
    transform: translateY(-5px);
}

.top-banner img {
    height: 100%;
    display: block;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.top-banner:hover img {
    transform: scale(1.03);
}

/* 階段標題 - 更優雅的設計 */
.stage-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px 0 20px;
    position: relative;
}

/* stage-title controls 按鈕樣式 */
.stage-title .controls {
    display: flex;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    z-index: 4;
    padding-bottom: 20px;
}

.stage-title .controls .btn-small {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 246, 230, 0.6);
    /* 蛋殼色（帶有微透明度） */
    color: #5d3d81;
    border: 1px solid rgba(93, 61, 129, 0.2);
    box-shadow: 0 6px 18px rgba(93, 61, 129, 0.06);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.stage-title .controls .btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(93, 61, 129, 0.12);
    background: rgba(255, 240, 217, 0.9);
    /* hover 稍微加深，但仍有透明 */
    color: #5d3d81;
}

.stage-title .title-row {
    display: flex;
    width: 100%;
    text-align: center;
}

.stage-title .stage-icon {
    height: 30px;
    /* 設定合適的圖示高度 */
    width: auto;
    object-fit: contain;
    margin-right: -4px;
    margin-top: 8px;
    animation: bounce-gentle 3s ease-in-out infinite;
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.stage-title .main-text {
    flex: 1;
    /* 佔滿剩餘空間，配合 text-align: center 實現置中 */
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    color: #5d3d81;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

/* 網格佈局 - 改為 3 欄，讓內容更寬大 */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 28px;
}

/* 活動卡片 - 強化精緻度 */
.event-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    /* 磨砂玻璃效果 */
    /* 雙層質感邊框 */
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    /* 效能優化：指定具體屬性替代 transition: all */
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.4s ease,
        border-color 0.4s ease;
    text-decoration: none !important;
    /* 多層層次陰影 */
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.03),
        0 15px 35px rgba(233, 82, 149, 0.06);
    position: relative;
    overflow: hidden;
    /* 效能優化：提示瀏覽器進行硬體加速 */
    will-change: transform, box-shadow;
}

/* 卡片頂部高光線 */
.event-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
    z-index: 1;
}

/* 卡片閃光效果 */
.event-card::after {
    content: "";
    position: absolute;
    top: -110%;
    left: -210%;
    width: 200%;
    height: 200%;
    background: linear-gradient(transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: rotate(35deg);
    transition: 0s;
    pointer-events: none;
}

.event-card:hover::after {
    left: 110%;
    top: 110%;
    transition: 0.7s ease-in-out;
}

.event-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.85);
    box-shadow:
        0 20px 45px rgba(233, 82, 149, 0.12),
        inset 0 0 20px rgba(255, 255, 255, 0.4);
    border-color: #fff;
}

.event-card .card-top {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
}

.event-card .card-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    margin-right: 18px;
    flex-shrink: 0;
}

.event-card .img-box {
    width: 110px;
    height: 110px;
    position: relative;
    margin-bottom: 8px;
}

.event-card .img-box img {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.event-card .info-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 110px;
}

.event-card .date {
    color: #7250a1;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 2px;
    letter-spacing: 1px;
}

.event-card .date span {
    font-size: 15px;
    opacity: 0.7;
    font-weight: 500;
}

.event-card .organizer {
    font-size: 16px;
    color: #e95295;
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: justify;
    text-align-last: justify;
    width: 100%;
    letter-spacing: 1px;
    opacity: 0.9;
    line-height: 1.2;
}

.event-card .title {
    color: #e95295;
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
    transition: transform 0.3s ease, color 0.3s ease;
    text-align: center;
    width: 100%;
    padding-top: 10px;
    letter-spacing: 1.5px;
}

.event-card .special-title {
    font-size: 19px;
    letter-spacing: 1px;
}

.event-card a {
    text-decoration: none !important;
}

.event-card a:hover .title {
    color: #e95295;
}

.event-card .desc {
    width: 100%;
    font-size: 16px;
    color: #777;
    text-align: left;
    padding-top: 10px;
    margin-bottom: 5px;
    line-height: 1.5;
    letter-spacing: 1.5px;
    overflow: hidden;
    min-height: 50px;
}

.event-card .desc-mobile {
    display: none;
}

.event-card .location {
    color: #4d4d4d;
    font-size: 14px;
    width: 100%;
    text-align: center;
    padding-top: 10px;
    margin-bottom: 2px;
}

.event-card .location i {
    color: #7250a1;
    margin-right: 5px;
    font-size: 16px;
    opacity: 0.6;
}

.event-card .location .special {
    letter-spacing: 1px;
}

/* 底部的按鈕群組 */
.card-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    margin-top: 5px;
    border-top: 1px dashed #eee;
    padding-top: 5px;
}

.btn-detail,
.btn-apply {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-detail {
    background: #e8f4fd;
    color: #2196f3;
}

.btn-detail:hover {
    background: #2196f3;
    color: #fff;
}

.btn-apply {
    background: #e95295;
    color: #fff;
}

.btn-apply:hover {
    background: #d43f7d;
    color: #ffd2ff;
    transform: scale(1.05);
}

/* 捲軸美化 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf2f8;
}

::-webkit-scrollbar-thumb {
    background: #ffd2ff;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e95295;
}

/* 詳細按鈕內的裝飾 */
.btn-detail::after {
    content: " ❤";
    font-size: 12px;
    opacity: 0.6;
    transition: 0.3s;
}

.btn-detail:hover::after {
    padding-left: 5px;
    opacity: 1;
}

/* 我要報名按鈕內的裝飾 */
.btn-apply::after {
    content: " ➔";
    font-size: 12px;
    opacity: 0.8;
    transition: 0.3s;
}

.btn-apply:hover::after {
    padding-left: 5px;
}

/* 第一階段與第二階段之間的分隔線 - 更華麗的設計 */
.stage-divider {
    width: 100%;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.decorative-line {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.decorative-line::before,
.decorative-line::after {
    content: "";
    height: 1px;
    background: linear-gradient(to right, transparent, #e95295 50%, transparent);
    flex: 1;
    position: relative;
}

/* 雙線效果 */
.decorative-line::before {
    box-shadow: 0 4px 0 rgba(233, 82, 149, 0.15);
}

.decorative-line::after {
    box-shadow: 0 4px 0 rgba(233, 82, 149, 0.15);
}

.line-center {
    font-size: 32px;
    color: #e95295;
    margin: 0 30px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(233, 82, 149, 0.4));
    animation: heart-beat 2s ease-in-out infinite;
    display: flex;
    align-items: center;
}

.line-center::before,
.line-center::after {
    content: "✿";
    font-size: 16px;
    position: absolute;
    color: #f5c358;
    opacity: 0.6;
}

.line-center::before {
    left: -25px;
    top: 0;
}

.line-center::after {
    right: -25px;
    bottom: 0;
}

@keyframes heart-beat {

    0%,
    100% {
        transform: scale(1) translateZ(0);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.15) translateZ(0);
        opacity: 1;
    }
}

@keyframes text-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.05);
        filter: brightness(1.1) drop-shadow(0 0 15px rgba(233, 82, 149, 0.3));
    }
}

/* 移除舊的 divider 樣式 */

/* 插畫位置 - 改為相對於第一階段網格定位於右下角 */
.illustration-boy-girl {
    position: absolute;
    right: -3%;
    /* 稍微往右出格 */
    bottom: 0px;
    /* 壓在第一階段底部邊界，並往下延伸到分隔線 */
    width: 30%;
    max-width: 300px;
    z-index: 5;
    /* 確保在卡片之上 */
    opacity: 1;
    pointer-events: none;
}

.illustration-boy-girl img {
    width: 100%;
    height: auto;
    object-fit: contain;
    /* 增加一點點浮動感 */
    animation: floating-illustration 6s ease-in-out infinite;
}

@keyframes floating-illustration {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -15px, 0);
    }
}

/* 底部單位資訊 */
.page-footer-info {
    margin-top: -40px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 30px rgba(93, 61, 129, 0.04);
}

.page-footer-info .info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-footer-info .label {
    background: #5d3d81;
    color: #fff;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-footer-info .value {
    color: #5d3d81;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 1px;
}

@media (max-width: 991px) {
    .illustration-boy-girl {
        display: none;
        /* 平板以下隱藏，避免遮擋文字 */
    }
}

@media (max-width: 480px) {
    .taichung115-section {
        padding: 40px 10px;
        /* 稍微增加內容寬度 */
    }

    .top-banner {
        width: 100%;
        height: auto;
    }

    .top-banner img {
        width: 100%;
        height: auto;
    }

    .stage-title .controls {
        justify-content: center;
        padding-bottom: 10px;
    }

    .stage-title .controls .btn-small {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .stage-title .main-text {
        font-size: 19px;
        text-align: left;
        margin-bottom: 20px;
        padding: 0 5px;
        line-height: 1.4;
    }

    .stage-title .stage-icon {
        display: none;
    }

    .event-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 60px;
        /* 減少底部間距 */
    }

    .event-card {
        padding: 20px;
        border-radius: 25px;
        backdrop-filter: blur(8px);
        /* 手機版減輕模糊計算壓力 */
        background: rgba(255, 255, 255, 0.65);
        /* 增加底色補償模糊減少的質感 */
    }

    .event-card .card-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .event-card .card-left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
        align-items: center;
    }

    .event-card .img-box {
        width: 180px;
        height: 180px;
        margin-bottom: 12px;
    }

    .event-card .location {
        padding-top: 20px;
        font-size: 16px;
        text-align: center;
    }

    .event-card .location .special {
        font-size: 14px;
    }

    .event-card .img-box img {
        border-radius: 30px;
        box-shadow: 0 10px 25px rgba(233, 82, 149, 0.15);
    }

    .event-card .info-box {
        height: auto;
        width: 100%;
    }

    .event-card .date {
        font-size: 26px;
    }

    .event-card .organizer {
        font-size: 18px;
        margin-bottom: 8px;
        text-align: center;
        text-align-last: auto;
        letter-spacing: 5px;
    }

    .event-card .title {
        font-size: 20px;
        padding-top: 0px;
    }

    .stage-divider {
        margin: 20px 0;
    }

    .line-center {
        font-size: 24px;
        margin: 0 15px;
    }

    .line-center::before,
    .line-center::after {
        display: none;
    }

    .decorative-line::before,
    .decorative-line::after {
        height: 1px;
    }

    .event-card .desc {
        text-align: left;
        padding: 0 5px;
        margin-top: 5px;
        font-size: 15px;
        display: none;
    }

    .event-card .desc-mobile {
        width: 100%;
        text-align: center;
        display: block;
        font-size: 14px;
        color:  #777;
    }

    .card-actions {
        padding-top: 10px;
    }

    .btn-detail,
    .btn-apply {
        padding: 12px 0;
        /* 加大按鈕點擊面積 */
        font-size: 15px;
    }

    .page-footer-info {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        margin-top: -20px;
        text-align: center;
    }

    .page-footer-info .info-item {
        flex-direction: column;
        gap: 8px;
    }

    .page-footer-info .value {
        font-size: 15px;
    }
}
