/* ==========================================
   DY Swiper Timeline v2.2.0
   大郁斜槓工作室 | wpdu.me
   ========================================== */

.dy-swiper-timeline {
    position: relative;
    width: 100%;
    overflow: hidden;
    user-select: none;
}

/* ==========================================
   年份 Swiper
   ========================================== */
.dy-st-year-wrapper {
    width: 100%;
    overflow: hidden;
}

.dy-st-year-swiper { width: 100%; }

.dy-st-year-slide {
    width: auto !important;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
}

.dy-st-year-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1;
}

.dy-st-year-text {
    display: block;
    font-size: 12vw;
    font-weight: 700;
    line-height: 0.9;
    white-space: nowrap;
    -webkit-text-stroke: 1px #cc0000;
    color: transparent;
    transition: color 0.35s ease;
}

.dy-st-year-slide.is-active .dy-st-year-text {
    color: #cc0000;
}

/* 民國標籤 */
.dy-st-roc-badge {
    display: inline-block;
    background-color: #cc0000;
    color: #fff;
    font-size: 0.75em;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.6;
    letter-spacing: 0.02em;
}

/* ==========================================
   導航點
   ========================================== */
.dy-st-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 0 12px;
}

.dy-st-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cc0000;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0.35;
    transition: opacity 0.3s, transform 0.3s;
    flex-shrink: 0;
}

.dy-st-dot.is-active {
    opacity: 1;
    transform: scale(2.5);
}

/* ==========================================
   內容 Swiper
   ========================================== */
.dy-st-content-wrapper {
    position: relative;
}

.dy-st-content-swiper {
    width: 100%;
    overflow: hidden;
}

.dy-st-content-slide {
    width: 100% !important;
    box-sizing: border-box;
    padding: 0 0 32px;
    opacity: 0 !important;
    transition: opacity 0.4s ease !important;
    pointer-events: none;
    position: absolute;
    top: 0; left: 0;
    /* flex 讓 inner 可以靠左/置中/靠右 */
    display: flex;
}

.dy-st-content-slide.is-active {
    opacity: 1 !important;
    pointer-events: auto;
    position: relative;
}

.dy-st-content-inner {
    width: 100%;
    max-width: 800px;
    box-sizing: border-box;
}

.dy-st-content-subtitle {
    font-size: 1.1em;
    font-weight: 700;
    color: #cc0000;
    margin-bottom: 12px;
}

.dy-st-content-body {
    font-size: 0.95em;
    line-height: 1.85;
    color: #333;
}
.dy-st-content-body p { margin: 0 0 8px; }
.dy-st-content-body p:last-child { margin-bottom: 0; }
.dy-st-content-body ul,
.dy-st-content-body ol { margin: 0; padding-left: 1.5em; }
.dy-st-content-body li { margin-bottom: 4px; }

/* 箭頭 */
.dy-st-btn-prev,
.dy-st-btn-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.dy-st-btn-prev:hover,
.dy-st-btn-next:hover { opacity: 1; }
.dy-st-btn-prev { left: 0; }
.dy-st-btn-next { right: 0; }
.dy-st-btn-prev svg,
.dy-st-btn-next svg {
    width: 24px; height: 24px;
    fill: #333;
}
.dy-st-btn-prev.is-disabled,
.dy-st-btn-next.is-disabled {
    opacity: 0.15;
    cursor: not-allowed;
}

/* ==========================================
   RWD
   ========================================== */
@media (max-width: 768px) {
    .dy-st-year-text { font-size: 20vw; }
    .dy-st-content-inner { max-width: 100%; }
    .dy-st-btn-prev,
    .dy-st-btn-next { display: none; }
}
