/* ============================================================================
   timeline-presentation.css
   全屏沉浸式时间轴演示样式
   主题：红金复古 (Revolutionary Red & Antique Gold)
   ============================================================================ */

:root {
    --tl-red-deep: #4A0810;
    --tl-red-crimson: #8B0000;
    --tl-red-bright: #C41E3A;
    --tl-red-soft: #A0182E;
    --tl-gold: #D4A84B;
    --tl-gold-bright: #F0D875;
    --tl-gold-soft: #B8942F;
    --tl-ivory: #F5E6D3;
    --tl-ivory-warm: #EDE0CB;
    --tl-ink: #1A0A0E;
    --tl-ink-light: #2A1015;
    --tl-paper: #FAF3E7;
    --tl-shadow-soft: rgba(74, 8, 16, 0.35);
    --tl-shadow-deep: rgba(0, 0, 0, 0.55);

    --tl-font-display: 'Noto Serif SC', 'STKaiti', 'Source Han Serif SC', serif;
    --tl-font-mono: 'Courier Prime', 'Courier New', 'JetBrains Mono', monospace;
    --tl-font-body: 'Noto Serif SC', 'Source Han Sans SC', sans-serif;
}

/* ============================================================================
   页面容器 —— 全屏模式
   ============================================================================ */
.tl-presentation-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--tl-red-deep) 0%, var(--tl-ink) 100%);
    color: var(--tl-ivory);
    overflow: hidden;
}

/* 暗纹背景：纸纹 + 五角星点缀 */
.tl-presentation-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(212, 168, 75, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(196, 30, 58, 0.08) 0%, transparent 40%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 3px, rgba(245, 230, 211, 0.015) 3px, rgba(245, 230, 211, 0.015) 4px);
    z-index: 0;
}

/* ============================================================================
   顶部工具栏（仅非全屏显示）
   ============================================================================ */
.tl-topbar {
    position: relative;
    z-index: 20;
    padding: 24px 40px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.tl-topbar-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.tl-topbar-title h1 {
    margin: 0;
    font-family: var(--tl-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tl-ivory);
    letter-spacing: 4px;
}

.tl-topbar-title .tl-subtitle {
    font-family: var(--tl-font-mono);
    font-size: 0.75rem;
    color: var(--tl-gold);
    letter-spacing: 3px;
    opacity: 0.75;
}

.tl-topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tl-topbar-btn {
    height: 36px;
    padding: 0 18px;
    background: rgba(245, 230, 211, 0.08);
    color: var(--tl-ivory);
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: 8px;
    font-family: var(--tl-font-body);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 2px;
}

.tl-topbar-btn:hover {
    background: rgba(212, 168, 75, 0.18);
    border-color: var(--tl-gold);
    color: var(--tl-gold-bright);
}

.tl-topbar-btn.is-primary {
    background: linear-gradient(135deg, var(--tl-red-crimson), var(--tl-red-bright));
    border-color: var(--tl-red-bright);
    color: var(--tl-ivory);
}

.tl-topbar-btn.is-primary:hover {
    background: linear-gradient(135deg, var(--tl-red-bright), var(--tl-red-crimson));
    color: var(--tl-gold-bright);
}

/* 速度控制：胶囊段 */
.tl-speed-segments {
    display: inline-flex;
    background: rgba(245, 230, 211, 0.06);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.tl-speed-segments button {
    padding: 4px 14px;
    background: transparent;
    border: none;
    color: var(--tl-ivory);
    font-family: var(--tl-font-body);
    font-size: 0.82rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    letter-spacing: 1px;
}

.tl-speed-segments button.active {
    background: var(--tl-red-crimson);
    color: var(--tl-gold-bright);
}

.tl-speed-segments button:hover:not(.active) {
    background: rgba(212, 168, 75, 0.15);
}

/* 旋转开关 */
.tl-rotate-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--tl-ivory);
    font-size: 0.85rem;
    cursor: pointer;
    user-select: none;
}

.tl-rotate-toggle .tl-switch {
    position: relative;
    width: 38px;
    height: 22px;
    background: rgba(245, 230, 211, 0.15);
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: 12px;
    transition: all 0.25s;
}

.tl-rotate-toggle .tl-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: var(--tl-ivory);
    border-radius: 50%;
    transition: all 0.25s;
}

.tl-rotate-toggle input { display: none; }
.tl-rotate-toggle input:checked + .tl-switch {
    background: var(--tl-red-crimson);
    border-color: var(--tl-red-bright);
}
.tl-rotate-toggle input:checked + .tl-switch::after {
    left: 18px;
}

/* 3D 展厅入口 */
.tl-3d-entry {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #8b1a22, #5c0f15);
    color: var(--tl-gold-bright);
    border: 1px solid var(--tl-gold);
    border-radius: 24px;
    text-decoration: none;
    font-size: 0.82rem;
    letter-spacing: 2px;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.35);
}
.tl-3d-entry svg { width: 16px; height: 16px; }
.tl-3d-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.45);
    background: linear-gradient(135deg, #a51c26, #7a1118);
}

/* ============================================================================
   时间轴预览网格（未进入全屏前）
   ============================================================================ */
.tl-preview-grid {
    position: relative;
    z-index: 10;
    padding: 20px 40px 80px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tl-card {
    position: relative;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--tl-ink-light);
    border: 1px solid rgba(212, 168, 75, 0.18);
    box-shadow: 0 6px 18px var(--tl-shadow-soft);
}

.tl-card:hover {
    transform: translateY(-6px);
    border-color: var(--tl-gold);
    box-shadow: 0 14px 32px var(--tl-shadow-deep);
}

.tl-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: var(--tl-ink);
    transition: transform 0.6s ease, opacity 0.4s ease;
}

/* 图片加载占位 shimmer */
.tl-card-image-loader {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        110deg,
        var(--tl-ink) 8%,
        rgba(139, 20, 40, 0.35) 18%,
        var(--tl-ink) 33%
    );
    background-size: 200% 100%;
    animation: tl-card-shimmer 1.6s infinite linear;
    opacity: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tl-card-image.is-loaded .tl-card-image-loader {
    opacity: 0;
}

@keyframes tl-card-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tl-card:hover .tl-card-image {
    transform: scale(1.05);
}

.tl-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(26, 10, 14, 0.5) 45%, rgba(26, 10, 14, 0.95) 100%);
}

.tl-card-year {
    position: absolute;
    top: 16px;
    left: 20px;
    font-family: var(--tl-font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--tl-gold-bright);
    letter-spacing: 4px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.tl-card-category {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: var(--tl-font-body);
    font-size: 0.7rem;
    padding: 3px 10px;
    background: rgba(196, 30, 58, 0.85);
    color: var(--tl-ivory);
    border-radius: 100px;
    letter-spacing: 2px;
}

.tl-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    color: var(--tl-ivory);
}

.tl-card-title {
    margin: 0 0 8px;
    font-family: var(--tl-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1px;
}

.tl-card-desc {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--tl-ivory-warm);
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   全屏演示模式
   ============================================================================ */
.tl-stage {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: radial-gradient(ellipse at center, var(--tl-red-deep) 0%, var(--tl-ink) 100%);
    display: none;
    overflow: hidden;
}

.tl-stage.is-active {
    display: block;
    animation: stageIn 0.6s ease;
}

@keyframes stageIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 全屏背景：暗纹 + 滚动五角星 */
.tl-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(212, 168, 75, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(0deg, transparent 0px, transparent 6px, rgba(245, 230, 211, 0.018) 6px, rgba(245, 230, 211, 0.018) 7px);
    pointer-events: none;
    z-index: 1;
}

.tl-stage::after {
    content: "★";
    position: absolute;
    top: 8%;
    right: 8%;
    font-size: 480px;
    color: var(--tl-gold);
    opacity: 0.025;
    z-index: 1;
    pointer-events: none;
    transform: rotate(15deg);
}

/* 单个 slide */
.tl-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.tl-slide.is-current {
    opacity: 1;
    pointer-events: auto;
}

/* ============================================================================
   Slide 内部 —— 三段式弹窗布局
   ============================================================================ */
.tl-slide-frame {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    max-height: 720px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 0;
    background: linear-gradient(135deg, var(--tl-ivory) 0%, var(--tl-paper) 100%);
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(212, 168, 75, 0.3),
        inset 0 0 0 8px var(--tl-paper),
        inset 0 0 0 9px rgba(212, 168, 75, 0.18);
    position: relative;
}

/* 左侧：图片区 */
.tl-slide-image {
    position: relative;
    overflow: hidden;
    background: var(--tl-ink);
}

.tl-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 8s ease;
}

.tl-slide.is-current .tl-slide-image img {
    transform: scale(1.04);
}

.tl-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 70%, rgba(26, 10, 14, 0.18) 100%);
    pointer-events: none;
}

.tl-slide-image-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--tl-gold);
    background: linear-gradient(135deg, var(--tl-red-deep), var(--tl-ink));
}

/* 右侧：内容区 */
.tl-slide-content {
    padding: 50px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background:
        linear-gradient(135deg, var(--tl-ivory) 0%, var(--tl-ivory-warm) 100%);
    color: var(--tl-ink);
}

.tl-slide-content::before {
    content: "";
    position: absolute;
    top: 24px;
    right: 24px;
    width: 30px;
    height: 30px;
    border-top: 2px solid var(--tl-gold);
    border-right: 2px solid var(--tl-gold);
}

.tl-slide-content::after {
    content: "";
    position: absolute;
    bottom: 24px;
    left: 24px;
    width: 30px;
    height: 30px;
    border-bottom: 2px solid var(--tl-gold);
    border-left: 2px solid var(--tl-gold);
}

/* 年份标签（顶部） */
.tl-year-label {
    display: inline-flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--tl-red-crimson), var(--tl-red-bright));
    color: var(--tl-gold-bright);
    border-radius: 4px;
    font-family: var(--tl-font-mono);
    font-weight: 700;
    letter-spacing: 6px;
    align-self: flex-start;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
    position: relative;
}

.tl-year-label::before,
.tl-year-label::after {
    content: "★";
    font-size: 0.7rem;
    color: var(--tl-gold-bright);
    opacity: 0.8;
}

.tl-year-label .tl-year-num {
    font-size: 1.4rem;
    line-height: 1;
}

.tl-year-label .tl-year-cat {
    font-family: var(--tl-font-display);
    font-size: 0.72rem;
    color: var(--tl-ivory);
    letter-spacing: 4px;
    opacity: 0.85;
}

/* 标题 */
.tl-title {
    margin: 0 0 22px;
    font-family: var(--tl-font-display);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--tl-red-crimson);
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 18px;
}

.tl-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--tl-gold), transparent);
}

/* 描述 */
.tl-body {
    margin: 0 0 30px;
    font-family: var(--tl-font-body);
    font-size: 1.05rem;
    line-height: 1.95;
    color: var(--tl-ink-light);
    letter-spacing: 0.5px;
    text-align: justify;
}

.tl-body::first-letter {
    font-family: var(--tl-font-display);
    font-size: 1.6em;
    color: var(--tl-red-crimson);
    font-weight: 700;
    margin-right: 4px;
    float: left;
    line-height: 1;
    padding-top: 4px;
}

/* 详情按钮 */
.tl-detail-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: var(--tl-red-crimson);
    color: var(--tl-gold-bright);
    border: 1.5px solid var(--tl-red-bright);
    border-radius: 6px;
    font-family: var(--tl-font-display);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 3px;
    position: relative;
    overflow: hidden;
}

.tl-detail-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.tl-detail-btn:hover::before {
    transform: translateX(100%);
}

.tl-detail-btn:hover {
    background: var(--tl-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(196, 30, 58, 0.4);
}

.tl-detail-btn .tl-arrow {
    font-size: 1.1rem;
    transition: transform 0.25s;
}

.tl-detail-btn:hover .tl-arrow {
    transform: translateX(3px);
}

/* ============================================================================
   Slide 进入动画（顺序：年 → 标题 → 描述 → 按钮）
   ============================================================================ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
    from { opacity: 0; transform: translateX(-24px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.tl-slide.is-current .tl-slide-frame {
    animation: zoomIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.tl-slide.is-current .tl-year-label {
    animation: slideRight 0.6s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.tl-slide.is-current .tl-title {
    animation: slideUp 0.6s 0.5s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.tl-slide.is-current .tl-body {
    animation: slideUp 0.6s 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.tl-slide.is-current .tl-detail-btn {
    animation: slideUp 0.6s 0.9s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============================================================================
   过渡动画类型
   ============================================================================ */
/* 1. Fade */
.tl-slide.tl-transition-fade.is-leaving {
    animation: fadeOut 0.5s forwards;
}
@keyframes fadeOut {
    to { opacity: 0; }
}

/* 2. Push */
.tl-slide.tl-transition-push.is-leaving {
    animation: pushOut 0.55s forwards;
}
@keyframes pushOut {
    to { opacity: 0; transform: translateX(-100%); }
}
.tl-slide.tl-transition-push.is-entering {
    animation: pushIn 0.55s forwards;
}
@keyframes pushIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

/* 3. Gradient（用 clip-path 制造卷帘效果） */
.tl-slide.tl-transition-gradient.is-leaving {
    animation: gradientOut 0.6s forwards;
}
@keyframes gradientOut {
    to { opacity: 0; clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
}
.tl-slide.tl-transition-gradient.is-entering {
    animation: gradientIn 0.6s forwards;
}
@keyframes gradientIn {
    from { opacity: 0; clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
    to { opacity: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* 4. Depth（3D 推入/拉出） */
.tl-stage {
    perspective: 1400px;
}
.tl-slide.tl-transition-depth.is-leaving {
    animation: depthOut 0.55s forwards;
    transform-origin: center center;
}
@keyframes depthOut {
    to { opacity: 0; transform: translateZ(-300px) scale(0.8); }
}
.tl-slide.tl-transition-depth.is-entering {
    animation: depthIn 0.55s forwards;
    transform-origin: center center;
}
@keyframes depthIn {
    from { opacity: 0; transform: translateZ(300px) scale(1.15); }
    to { opacity: 1; transform: translateZ(0) scale(1); }
}

/* ============================================================================
   右下角圆形播放按钮（核心 CTA）
   ============================================================================ */
.tl-fab {
    position: fixed;
    right: 36px;
    bottom: 36px;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: #f0d875;
    border: 3px solid rgba(212, 168, 75, 0.85);
    cursor: pointer;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 8px 24px rgba(196, 30, 58, 0.45),
        0 0 0 6px rgba(212, 168, 75, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tl-fab:hover {
    transform: scale(1.08);
    box-shadow:
        0 12px 32px rgba(196, 30, 58, 0.6),
        0 0 0 10px rgba(212, 168, 75, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tl-fab:active {
    transform: scale(0.96);
}

.tl-fab.is-pulsing {
    animation: fabPulse 2.4s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(196, 30, 58, 0.45), 0 0 0 6px rgba(212, 168, 75, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 8px 24px rgba(196, 30, 58, 0.55), 0 0 0 18px rgba(212, 168, 75, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
}

.tl-fab-icon {
    width: 28px;
    height: 28px;
    margin-left: 3px;
}

.tl-fab-tip {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 10, 14, 0.92);
    color: var(--tl-ivory);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    border: 1px solid rgba(212, 168, 75, 0.4);
    letter-spacing: 2px;
}

.tl-fab:hover .tl-fab-tip {
    opacity: 1;
}

/* ============================================================================
   全屏模式下的导航控制（隐藏基础导航条）
   ============================================================================ */
.tl-stage .tl-topbar,
.tl-stage ~ .tl-topbar,
.tl-stage .tl-preview-grid {
    display: none !important;
}

/* 关闭按钮（全屏模式右上角） */
.tl-stage-close {
    position: fixed;
    top: 28px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 10, 14, 0.65);
    color: var(--tl-ivory);
    border: 1px solid rgba(212, 168, 75, 0.4);
    cursor: pointer;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.tl-stage.is-active ~ .tl-stage-close {
    display: flex;
}

.tl-stage-close:hover {
    background: var(--tl-red-crimson);
    border-color: var(--tl-gold);
    transform: rotate(90deg);
}

/* 键盘提示（仅在初次进入全屏显示 2s 后淡出） */
.tl-hint {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 14px;
    padding: 10px 22px;
    background: rgba(26, 10, 14, 0.7);
    color: var(--tl-ivory);
    border: 1px solid rgba(212, 168, 75, 0.3);
    border-radius: 100px;
    font-size: 0.78rem;
    z-index: 110;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

.tl-hint.is-visible {
    opacity: 1;
}

.tl-hint kbd {
    display: inline-block;
    padding: 1px 7px;
    background: rgba(245, 230, 211, 0.12);
    border: 1px solid rgba(212, 168, 75, 0.4);
    border-radius: 4px;
    font-family: var(--tl-font-mono);
    color: var(--tl-gold-bright);
    margin-right: 4px;
    font-size: 0.72rem;
}

.tl-hint-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

/* ============================================================================
   底部进度条 + 页面指示器
   ============================================================================ */
.tl-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(245, 230, 211, 0.1);
    z-index: 110;
    display: none;
}

.tl-stage.is-active ~ .tl-progress {
    display: block;
}

.tl-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--tl-gold), var(--tl-gold-bright), var(--tl-red-bright));
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.6);
}

.tl-page-indicator {
    position: fixed;
    bottom: 24px;
    left: 32px;
    color: var(--tl-ivory);
    font-family: var(--tl-font-mono);
    font-size: 0.95rem;
    z-index: 110;
    display: none;
    letter-spacing: 3px;
    background: rgba(26, 10, 14, 0.55);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid rgba(212, 168, 75, 0.3);
    backdrop-filter: blur(8px);
}

.tl-stage.is-active ~ .tl-page-indicator {
    display: block;
}

.tl-page-indicator .tl-current {
    color: var(--tl-gold-bright);
    font-weight: 700;
    font-size: 1.1rem;
}

.tl-page-indicator .tl-divider {
    color: var(--tl-gold);
    margin: 0 6px;
    opacity: 0.5;
}

/* 速度指示器（屏幕顶部短暂显示） */
.tl-speed-toast {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    padding: 10px 22px;
    background: rgba(26, 10, 14, 0.85);
    color: var(--tl-gold-bright);
    border: 1px solid var(--tl-gold);
    border-radius: 6px;
    font-family: var(--tl-font-mono);
    font-size: 0.85rem;
    z-index: 110;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 2px;
    pointer-events: none;
}

.tl-speed-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================================================
   错误状态
   ============================================================================ */
.tl-error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--tl-ivory);
    background: rgba(196, 30, 58, 0.1);
    border: 1px dashed rgba(196, 30, 58, 0.4);
    border-radius: 12px;
    margin: 40px;
}

.tl-error-state h3 {
    color: var(--tl-gold-bright);
    font-family: var(--tl-font-display);
    margin-bottom: 12px;
}

.tl-error-state p {
    color: var(--tl-ivory-warm);
    opacity: 0.8;
}

/* ============================================================================
   响应式
   ============================================================================ */
@media (max-width: 980px) {
    .tl-topbar { padding: 16px 20px; }
    .tl-preview-grid { padding: 16px 20px 100px; }
    .tl-card { height: 280px; }

    .tl-slide { padding: 32px 28px; }
    .tl-slide-frame {
        grid-template-columns: 1fr;
        max-height: 85vh;
    }
    .tl-slide-image { height: 200px; }
    .tl-slide-content { padding: 28px 24px; }
    .tl-title { font-size: 1.7rem; }
    .tl-body { font-size: 0.95rem; line-height: 1.75; }
    .tl-year-label { padding: 6px 14px; }
    .tl-year-label .tl-year-num { font-size: 1.1rem; }
    .tl-year-label .tl-year-cat { font-size: 0.65rem; letter-spacing: 2px; }

    .tl-fab { right: 20px; bottom: 20px; width: 64px; height: 64px; }
    .tl-fab-icon { width: 24px; height: 24px; }
}

@media (max-width: 640px) {
    .tl-topbar-title h1 { font-size: 1.15rem; letter-spacing: 2px; }
    .tl-topbar-title .tl-subtitle { display: none; }
    .tl-topbar-actions { gap: 6px; }
    .tl-topbar-btn { padding: 0 12px; font-size: 0.78rem; }
    .tl-speed-segments button { padding: 3px 8px; font-size: 0.75rem; }
    .tl-preview-grid { grid-template-columns: 1fr; }
    .tl-card { height: 240px; }
    .tl-page-indicator { left: 16px; bottom: 16px; font-size: 0.8rem; padding: 4px 10px; }
    .tl-stage-close { top: 14px; right: 14px; }
}

@media (max-width: 420px) {
    .tl-slide-content { padding: 22px 18px; }
    .tl-title { font-size: 1.4rem; }
    .tl-body { font-size: 0.85rem; }
    .tl-detail-btn { padding: 10px 18px; font-size: 0.85rem; letter-spacing: 2px; }
    .tl-hint { padding: 8px 14px; font-size: 0.7rem; gap: 8px; }
    .tl-hint-item { gap: 4px; }
}

/* ============================================================================
   减弱动效（无障碍）
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    .tl-slide.is-current .tl-slide-frame,
    .tl-slide.is-current .tl-year-label,
    .tl-slide.is-current .tl-title,
    .tl-slide.is-current .tl-body,
    .tl-slide.is-current .tl-detail-btn {
        animation: none;
    }
    .tl-fab.is-pulsing { animation: none; }
}
