/* ===== Timeline Carousel 前台樣式 ===== */

.tlc-timeline {
    --tlc-highlight: #e74c3c;
    --tlc-gray: #cccccc;
    --tlc-gray-dark: #999999;
    --tlc-dot-size: 16px;

    max-width: 900px;
    margin: 30px auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
        "Microsoft JhengHei", sans-serif;
    box-sizing: border-box;
}

.tlc-timeline *,
.tlc-timeline *::before,
.tlc-timeline *::after {
    box-sizing: border-box;
}

.tlc-track-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.tlc-track {
    position: relative;
    flex: 1;
    padding: 35px 0 10px;
}

.tlc-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 42px;
    height: 2px;
    background: var(--tlc-gray);
    z-index: 1;
}

.tlc-line-active {
    position: absolute;
    left: 0;
    top: 42px;
    height: 2px;
    width: 0;
    background: var(--tlc-highlight);
    z-index: 2;
    transition: width 0.4s ease;
}

.tlc-dots {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 3;
}

.tlc-dot-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.tlc-dot {
    display: block;
    width: var(--tlc-dot-size);
    height: var(--tlc-dot-size);
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--tlc-gray);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.tlc-year {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--tlc-gray-dark);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.tlc-dot-item:hover .tlc-dot {
    border-color: var(--tlc-highlight);
    transform: scale(1.1);
}

.tlc-dot-item:hover .tlc-year {
    color: var(--tlc-highlight);
}

.tlc-dot-item.is-active .tlc-dot {
    background: var(--tlc-highlight);
    border-color: var(--tlc-highlight);
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.15);
    transform: scale(1.15);
}

.tlc-dot-item.is-active .tlc-year {
    color: var(--tlc-highlight);
    font-weight: 700;
}

.tlc-nav {
    background: #fff;
    border: 1px solid var(--tlc-gray);
    color: var(--tlc-gray-dark);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    padding: 0;
}

.tlc-nav:hover:not(:disabled) {
    background: var(--tlc-highlight);
    border-color: var(--tlc-highlight);
    color: #fff;
}

.tlc-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.tlc-content-wrapper {
    position: relative;
    margin-top: 25px;
    padding: 25px 30px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    min-height: 120px;
    overflow: hidden;
}

.tlc-content-panel {
    display: none;
    animation: tlcFadeIn 0.4s ease;
}

.tlc-content-panel.is-active {
    display: block;
}

.tlc-content-title {
    margin: 0 0 12px;
    font-size: 20px;
    color: var(--tlc-highlight);
    font-weight: 700;
}

.tlc-content-body {
    color: #333;
    line-height: 1.7;
    font-size: 15px;
}

.tlc-content-body p:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 600px) {
    .tlc-year { font-size: 12px; }
    .tlc-dot { width: 12px; height: 12px; }
    .tlc-content-wrapper { padding: 18px 18px; }
    .tlc-content-title { font-size: 17px; }
    .tlc-content-body { font-size: 14px; }
}
