/* ============================================
   RESET & BASE STYLES
   ============================================ */

/* 覆盖全局 overflow-x: hidden，使 sticky 定位正常工作 */
html {
    overflow-x: clip !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: clip;
    background-color: #ffffff;
    color: #1a1a1a;
    min-height: 100vh;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUpTransform {
    to {
        transform: translateY(0);
    }
}

@keyframes flow {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 20px;
    }
}

@keyframes shimmer {
    100% {
        left: 150%;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}


/* ============================================
   LAYOUT
   ============================================ */
.lgnewui-time-line-spacer {
    height: 112px;
    width: 100%;
}

.lgnewui-time-line-main {
    flex-grow: 1;
    width: 100%;
    max-width: 1152px;
    margin: 0 auto;
    padding-right: 10px;
}

.lgnewui-time-line-container {
    padding-top: 16px;
}

.lgnewui-time-line-wrapper {
    width: 100%;
}

/* ============================================
   YEAR SECTION
   ============================================ */
.lgnewui-time-line-year-section {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 96px;
}

.lgnewui-time-line-year-section:last-child {
    margin-bottom: 120px;
    /* 只留出 footer 的空间 */
}

/* Year Badge Mobile */
.lgnewui-time-line-year-badge-mobile {
    position: sticky;
    top: 90px;
    z-index: 30;
    margin-bottom: 32px;
    padding: 0 8px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    animation: fadeInUpTransform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(20px);
}

.lgnewui-time-line-year-badge-inner {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.lgnewui-time-line-year-badge-year {
    font-size: 20px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.lgnewui-time-line-year-badge-divider {
    width: 1px;
    height: 12px;
    background-color: rgba(156, 163, 175, 0.5);
}

.lgnewui-time-line-year-badge-chapter {
    font-size: 10px;
    font-family: 'La Belle Aurore', cursive;
    color: #ef4444;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    padding-top: 2px;
}

/* Year Sidebar Desktop */
.lgnewui-time-line-year-sidebar {
    display: none;
}

.lgnewui-time-line-year-sticky {
    position: sticky;
    top: 160px;
}

.lgnewui-time-line-year-number {
    font-size: 72px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    position: relative;
    display: inline-block;
    transition: color 0.5s ease;
    color: #e5e5e5;
}

.lgnewui-time-line-year-section.active .lgnewui-time-line-year-number {
    color: #1a1a1a;
}

.lgnewui-time-line-year-sparkle {
    position: absolute;
    top: -16px;
    right: -16px;
    color: #ef4444;
    opacity: 0;
    transition: opacity 0.7s ease;
    transition-delay: 0.1s;
}

.lgnewui-time-line-year-section.active .lgnewui-time-line-year-sparkle {
    opacity: 1;
}

.lgnewui-time-line-year-sparkle i {
    font-size: 24px;
    animation: spin 8s linear infinite;
}

.lgnewui-time-line-year-chapter {
    font-family: 'La Belle Aurore', cursive;
    font-size: 24px;
    color: #666;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.lgnewui-time-line-year-section.active .lgnewui-time-line-year-chapter {
    opacity: 0.6;
    transform: translateY(0);
}

/* ============================================
   TIMELINE TRACK
   ============================================ */
.lgnewui-time-line-track-wrapper {
    display: none;
}

.lgnewui-time-line-track-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
}

.lgnewui-time-line-track {
    width: 4px;
    background-color: #f3f4f6;
    border-radius: 99px;
    position: relative;
    overflow: visible;
    height: 100%;
}

.lgnewui-time-line-track.trail-mask {
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.lgnewui-time-line-progress {
    width: 100%;
    background: linear-gradient(180deg, #ef4444 0%, #f87171 50%, #ef4444 100%);
    background-size: 100% 30px;
    border-radius: 99px;
    position: absolute;
    top: 0;
    left: 0;
    height: 0%;
    will-change: height;
    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4));
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lgnewui-time-line-progress.active {
    animation: flow 1s linear infinite;
}

.lgnewui-time-line-progress::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background-color: #ef4444;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M240,102c0,70-103.79,126.66-108.21,129a8,8,0,0,1-7.58,0C119.79,228.66,16,172,16,102A62.07,62.07,0,0,1,78,40c20.65,0,38.73,8.88,50,23.89C139.27,48.88,157.35,40,178,40A62.07,62.07,0,0,1,240,102Z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.8));
    z-index: 30;
}

/* Mobile Track */
.lgnewui-time-line-track-mobile {
    display: block;
    position: absolute;
    left: 20px;
    top: 41px;
    bottom: 0;
    z-index: 0;
}

/* ============================================
   EVENTS & NODES
   ============================================ */
.lgnewui-time-line-events {
    flex: 1;
    position: relative;
}

.lgnewui-time-line-events-inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.lgnewui-time-line-event {
    position: relative;
    width: 100%;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.lgnewui-time-line-event.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Node Wrappers */
.lgnewui-time-line-node-wrapper-pc {
    display: none;
}

.lgnewui-time-line-node-wrapper-mobile {
    display: block;
    position: absolute;
    left: 15px;
    top: 41px;
    transform: translateY(-50%);
    z-index: 10;
}

.lgnewui-time-line-node {
    width: 14px;
    height: 14px;
    background-color: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    position: relative;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.lgnewui-time-line-node::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-color: #d1d5db;
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: scale(0.8);
}

.lgnewui-time-line-node.active {
    border-color: #ef4444;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.lgnewui-time-line-node.active::after {
    background-color: #ef4444;
    transform: scale(1);
}

.lgnewui-time-line-connector {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, transparent);
    left: 0;
    width: 0%;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    z-index: 10;
}

.lgnewui-time-line-connector.active {
    width: 100%;
    opacity: 1;
}

/* ============================================
   CARD BASE
   ============================================ */
.lgnewui-time-line-card-wrapper {
    transition: all 0.5s ease;
}

.lgnewui-time-line-card {
    background-image: linear-gradient(145deg, #ffffff 0%, #fcfcfc 100%);
    border-radius: 16px;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    transform: translateZ(0);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.lgnewui-time-line-card:not(.active) {
    transform: translateY(30px) scale(0.95);
}

.lgnewui-time-line-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.05);
}

.lgnewui-time-line-event:hover .lgnewui-time-line-card.active {
    transform: translateY(-5px) scale(1.01);
}

.lgnewui-time-line-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-25deg);
    animation: shimmer 0.8s forwards;
    animation-delay: 0.3s;
    pointer-events: none;
}

.lgnewui-time-line-ticket-card.active::before {
    display: none;
}

.lgnewui-time-line-diffused-light {
    content: '';
    position: absolute;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    opacity: .5;
}

.lgnewui-time-line-card-inner {
    position: relative;
    z-index: 10;
}

/* ============================================
   CARD HEADER
   ============================================ */
.lgnewui-time-line-card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 20px 12px;
    position: relative;
    z-index: 20;
}

.lgnewui-time-line-card-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

/* 头像组件已迁移到 head.php 公共 .lg-author */
/* timeline 专属覆盖：作者信息间距 */
.lgnewui-time-line-card-header .lg-author__text {
    gap: 5px;
}

/* =========================================
   Capsule Badge Style (From capsule.html)
   ========================================= */

.lgnewui-timeline-capsule {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
    padding: 2px;
    padding-right: 12px;
    height: 24px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.lgnewui-timeline-capsule-icon-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lgnewui-timeline-capsule-icon-box i {
    font-size: 10px;
    font-weight: bold;
    display: block;
}

.lgnewui-timeline-capsule-label {
    font-size: 10px;
    font-weight: 700;
    margin-left: 8px;
    line-height: 1;
}

.lgnewui-timeline-capsule-divider {
    width: 1px;
    height: 10px;
    margin: 0 8px;
    background-color: #cbd5e1;
}

.lgnewui-timeline-capsule-time {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1;
    letter-spacing: 0;
}

/* Variant 2: High Contrast (高反差) */
.lgnewui-timeline-capsule.style-contrast {
    background-color: #000000;
    color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-icon-box {
    background-color: #ffffff;
    color: #000000;
}

.lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-label {
    color: #ffffff;
}

.lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-divider {
    background-color: rgba(255, 255, 255, 0.3);
}

.lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-time {
    color: rgba(255, 255, 255, 0.6);
}

.lgnewui-time-line-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #6b7280;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.01em;
}

.no-diffused-light .lgnewui-time-line-meta-item {
    background: #f3f3f3;
}

.lgnewui-time-line-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    background: #fff;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.lgnewui-time-line-meta-item i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 11px;
    color: #9ca3af;
    flex-shrink: 0;
}

.lgnewui-time-line-meta-item span {
    color: #6b7280;
    font-weight: 500;
    white-space: nowrap;
}

/* Clickable location meta item */
.lgnewui-tl-meta-location-link {
    cursor: pointer;
    position: relative;
}

.lgnewui-tl-meta-location-link:hover {
    background: #f0f9ff;
}

.lgnewui-tl-meta-location-link:hover i {
    background: #dbeafe;
    color: #3b82f6;
}

.lgnewui-tl-meta-location-link:hover span {
    color: #3b82f6;
}

.lgnewui-tl-meta-location-link:active {
    transform: scale(0.95);
}

/* ================= 恋爱清单达成地点（点滴风格） ================= */
.lovelist-location-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.lovelist-location-link i {
    font-size: 1.1em;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.lovelist-location-link.has-coords {
    cursor: pointer;
}

.lovelist-location-link.has-coords:hover {
    color: #3b82f6;
}

.lovelist-location-link.has-coords:hover i {
    color: #3b82f6;
}

.lovelist-location-link.has-coords:active {
    transform: scale(0.95);
}

/* ================= 链接框 ================= */
.lgnewui-tl-link-card {
    display: flex; align-items: center; gap: 0.75rem; background-color: rgba(255,255,255,0.5); padding: 0.75rem;
    border-radius: 0.75rem; border: 1px solid rgba(255,255,255,0.6); margin-top: 1rem; text-decoration: none;
    transition: background-color 0.2s, transform 0.2s; cursor: pointer;
}
.lgnewui-tl-link-card:hover { background-color: rgba(255,255,255,0.8); }

.lgnewui-tl-link-card-icon {
    width: 2rem; height: 2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: transform 0.2s; box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-icon { transform: scale(1.05); }
.lgnewui-tl-link-card-icon.icon-rose { background-color: #ffe4e6; color: #f43f5e; }
.lgnewui-tl-link-card-icon.icon-blue { background-color: #dbeafe; color: #3b82f6; }
.lgnewui-tl-link-card-icon.icon-slate { background-color: #f1f5f9; color: #64748b; }
.lgnewui-tl-link-card-icon svg,
.lgnewui-tl-link-card-icon i { width: 1rem; height: 1rem; }

.lgnewui-tl-link-card-body { flex: 1; overflow: hidden; }
.lgnewui-tl-link-card-title { font-size: 0.875rem; font-weight: 700; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; }
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-title.hover-rose { color: #f43f5e; }
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-title.hover-blue { color: #3b82f6; }
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-title.hover-slate { color: #0f172a; }

.lgnewui-tl-link-card-path { font-size: 0.625rem; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 0.125rem; }
.lgnewui-tl-link-card-arrow, .lgnewui-tl-link-card-external { width: 1rem; height: 1rem; color: #cbd5e1; transition: color 0.2s; }
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-arrow { color: #fb7185; }
.lgnewui-tl-link-card:hover .lgnewui-tl-link-card-external { color: #64748b; }

.lgnewui-tl-link-card-avatars { display: flex; margin-right: 0.25rem; }
.lgnewui-tl-link-card-avatars img { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 2px solid white; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,0.05); margin-left: -0.5rem; }
.lgnewui-tl-link-card-avatars img:first-child { margin-left: 0; }

/* Ticket variant (机票卡片内的链接) */
.lgnewui-tl-link-card-ticket {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.lgnewui-tl-link-card-ticket .lgnewui-tl-link-card-title {
    color: rgba(255, 255, 255, 0.85);
}

.lgnewui-tl-link-card-ticket .lgnewui-tl-link-card-path {
    color: rgba(255, 255, 255, 0.35);
}

.lgnewui-tl-link-card-ticket .lgnewui-tl-link-card-icon {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}

.lgnewui-tl-link-card-ticket .lgnewui-tl-link-card-arrow,
.lgnewui-tl-link-card-ticket .lgnewui-tl-link-card-external {
    color: rgba(255, 255, 255, 0.3);
}

.lgnewui-tl-link-card-ticket:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.lgnewui-tl-link-card-ticket:hover .lgnewui-tl-link-card-icon {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
}

.lgnewui-tl-link-card-ticket:hover .lgnewui-tl-link-card-arrow,
.lgnewui-tl-link-card-ticket:hover .lgnewui-tl-link-card-external {
    color: rgba(255, 255, 255, 0.6);
}

.lgnewui-time-line-meta-divider {
    display: none;
}

.lgnewui-time-line-meta-location {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Date Badge */
.lgnewui-time-line-date-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 14px;
}

.lgnewui-time-line-date-day {
    font-size: 26px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.95);
    line-height: 1;
}

.lgnewui-time-line-date-divider {
    height: 20px;
    width: 1px;
    background-color: #e5e7eb;
}

.lgnewui-time-line-date-month {
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.1em;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    color: #9ca3af;
    padding-top: 2px;
}

/* ============================================
   CARD CONTENT
   ============================================ */
.lgnewui-time-line-card-content {
    padding: 16px 20px;
}

.lgnewui-time-line-card-title {
    font-weight: 700;
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    font-family: 'Noto Serif SC', serif;
}

.lgnewui-time-line-card-desc {
    font-size: 14px;
    color: rgba(102, 102, 102, 0.9);
    line-height: 1.75;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-align: justify;
}

.lgnewui-time-line-card-footer {
    margin-top: 32px;
    padding-top: 16px;
    border-top: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
}

.lgnewui-time-line-card-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 30%;
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06) 0%, transparent 100%);
}

.lgnewui-time-line-quote-icon {
    color: #d1d5db;
}

.lgnewui-time-line-quote-icon i {
    font-size: 20px;
    opacity: 0.5;
}

.lgnewui-time-line-signature {
    font-family: 'Dancing Script', 'Liu Jian Mao Cao', cursive;
    font-size: 20px;
    color: rgba(239, 68, 68, 0.8);
    transform: rotate(-2deg);
}

/* ============================================
   MEDIA CARD
   ============================================ */
.lgnewui-time-line-media-card .lgnewui-time-line-card-content {
    padding: 12px;
}

.lgnewui-time-line-media-container {
    border-radius: 12px;
    overflow: hidden;
    background: #f3f3f3;
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 256px;
    width: 100%;
    contain: content;
    margin-top: 14px;
    margin-bottom: 12px;
    position: relative;
    transition: box-shadow 0.3s ease;
}

.lgnewui-time-line-event:hover .lgnewui-time-line-media-container {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.lgnewui-time-line-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.lgnewui-time-line-event:hover .lgnewui-time-line-media-container img {
    transform: scale(1.05);
}

.lgnewui-time-line-video-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.lgnewui-time-line-video-play-btn {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgnewui-time-line-video-play-btn i {
    color: #1a1a1a;
    margin-left: 4px;
}

.lgnewui-time-line-media-info {
    padding: 0 4px 4px;
}

/* ============================================
   AUDIO CARD
   ============================================ */
.lgnewui-time-line-audio-card .lgnewui-time-line-card-content {
    padding-top: 8px;
}

.lgnewui-time-line-voice-player {
    background: linear-gradient(135deg, #fff1f2 0%, #fff 100%);
    border-radius: 9999px;
    padding: 8px 20px 8px 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(254, 226, 226, 0.5);
    transition: border-color 0.3s ease;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
}

.lgnewui-time-line-voice-player:hover {
    border-color: #fecaca;
}

.lgnewui-time-line-voice-player:hover .lgnewui-time-line-voice-icon {
    transform: scale(1.05);
}

.lgnewui-time-line-voice-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lgnewui-time-line-voice-icon-pulse {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.lgnewui-time-line-voice-icon i {
    font-size: 10px;
    margin-left: 2px;
    position: relative;
    z-index: 10;
}

.lgnewui-time-line-voice-icon .lgnewui-time-line-pause-icon {
    display: none;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-play-icon {
    display: none;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-pause-icon {
    display: block;
}

.lgnewui-time-line-voice-bars {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 16px;
    min-width: 80px;
}

.lgnewui-time-line-voice-bar {
    width: 3px;
    background-color: #fee2e2;
    border-radius: 99px;
    transition: background-color 0.3s ease;
    transform-origin: bottom;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-voice-bar {
    background-color: #ef4444;
    animation: wave 1s ease-in-out infinite;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-voice-bar:nth-child(odd) {
    animation-duration: 0.8s;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-voice-bar:nth-child(even) {
    animation-duration: 1.1s;
}

.lgnewui-time-line-voice-player.playing .lgnewui-time-line-voice-bar:nth-child(3n) {
    animation-duration: 1.3s;
}

.lgnewui-time-line-voice-duration {
    font-size: 10px;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    color: rgba(239, 68, 68, 0.8);
    margin-left: 4px;
}

.lgnewui-time-line-audio-info {
    padding: 0 4px;
}

.lgnewui-time-line-audio-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.lgnewui-time-line-audio-icon {
    font-size: 20px;
    color: #f43f5e;
}

/* ============================================
   TICKET CARD
   ============================================ */
.lgnewui-time-line-ticket-card {
    position: relative;
    background-color: #1a1a1a !important;
    background-image: none !important;
    color: white;
    border: none !important;
    /* 真挖空实现： */
    /* 1. 移除 box-shadow，因为它会被 mask 裁剪掉 */
    box-shadow: none;
    /* 2. 使用 filter: drop-shadow，它会贴合裁剪后的边缘显示阴影 */
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.2));

    /* 3. Mask 遮罩：使用 radial-gradient 在左右两侧画透明圆 */
    -webkit-mask:
        radial-gradient(circle at 0 calc(63% + 10px), transparent 10px, black 10.5px) top left,
        radial-gradient(circle at 100% calc(63% + 10px), transparent 10px, black 10.5px) top right;
    mask:
        radial-gradient(circle at 0 calc(63% + 10px), transparent 10px, black 10.5px) top left,
        radial-gradient(circle at 100% calc(63% + 10px), transparent 10px, black 10.5px) top right;

    -webkit-mask-size: 51% 100%;
    mask-size: 51% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    /* 确保内容不会溢出裁剪区 */
    overflow: hidden;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-card-title {
    color: #ffffff !important;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-card-desc {
    color: rgba(255, 255, 255, 0.7) !important;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-card-inner {
    position: relative;
    z-index: 10;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-card-header {
    color: white;
    position: relative;
    z-index: 20;
}

.lgnewui-time-line-ticket-card .lg-author__name {
    color: white !important;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-author-subtitle {
    color: rgba(255, 255, 255, 0.5);
}

.lgnewui-time-line-ticket-card .lgnewui-timeline-capsule.style-contrast {
    background-color: #f4f4f5;
    color: #000000;
    box-shadow: none;
}

.lgnewui-time-line-ticket-card .lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-icon-box {
    background-color: #000000;
    color: #ffffff;
}

.lgnewui-time-line-ticket-card .lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-label {
    color: #000000;
}

.lgnewui-time-line-ticket-card .lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-divider {
    background-color: rgba(0, 0, 0, 0.2);
}

.lgnewui-time-line-ticket-card .lgnewui-timeline-capsule.style-contrast .lgnewui-timeline-capsule-time {
    color: rgba(0, 0, 0, 0.5);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-event-type i {
    color: rgba(255, 255, 255, 0.5);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-time-ago {
    color: rgba(255, 255, 255, 0.5);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-subtitle-dot {
    background-color: rgba(255, 255, 255, 0.3);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-meta-item {
    background: rgba(255, 255, 255, 0.08);
    border: none;
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-meta-item i {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-meta-item span {
    color: rgba(255, 255, 255, 0.5);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-date-day {
    color: rgba(255, 255, 255, 0.9);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-date-month {
    color: rgba(255, 255, 255, 0.45);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-date-divider {
    background-color: rgba(255, 255, 255, 0.2);
}

.lgnewui-time-line-ticket-card .lgnewui-time-line-ticket-date-badge {
    border-left-color: rgba(255, 255, 255, 0.1);
}

@keyframes ticketSweep {
    0% {
        left: -80%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    100% {
        left: 150%;
        opacity: 0;
    }
}

.lgnewui-time-line-ticket-overlay {
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(105deg,
            transparent 20%,
            rgba(255, 255, 255, 0.15) 35%,
            rgba(255, 255, 255, 0.25) 45%,
            rgba(255, 255, 255, 0.15) 55%,
            rgba(255, 255, 255, 0.06) 65%,
            transparent 80%);
    pointer-events: none;
    z-index: 30;
    opacity: 0;
}

.lgnewui-time-line-ticket-card.active .lgnewui-time-line-ticket-overlay {
    animation: ticketSweep 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.6s forwards;
}

.lgnewui-time-line-ticket-notch {
    display: none;
}

.lgnewui-time-line-ticket-content {
    padding: 20px 32px 36px;
    position: relative;
    z-index: 10;
}

.lgnewui-time-line-ticket-route {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.lgnewui-time-line-ticket-city-code {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1;
    color: #fff;
    font-family: 'Bodoni Moda', 'Noto Serif SC', serif;
}

.lgnewui-time-line-ticket-city-name {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-weight: 400;
}

.lgnewui-time-line-ticket-plane {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.35);
    position: relative;
}

.lgnewui-time-line-ticket-divider {
    height: 1px;
    background: repeating-linear-gradient(to right,
            rgba(255, 255, 255, 0.15) 0,
            rgba(255, 255, 255, 0.15) 6px,
            transparent 6px,
            transparent 12px);
    margin-bottom: 20px;
}

.lgnewui-time-line-ticket-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lgnewui-time-line-ticket-detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lgnewui-time-line-ticket-detail-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.lgnewui-time-line-ticket-detail-value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.lgnewui-time-line-ticket-seat {
    color: #f87171;
}

.lgnewui-time-line-ticket-qr {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lgnewui-time-line-ticket-qr i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.15);
}

/* Video play icon (matches loveImg approach) */
.lgnewui-tl-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    transition: all 0.25s ease;
    pointer-events: none;
}

.lgnewui-time-line-media-container.video-player:hover .lgnewui-tl-video-play-icon {
    background: rgba(0, 0, 0, 0.65);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Media Metadata Overlay */
.lgnewui-tl-media-meta {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 2;
    pointer-events: none;
}

.lgnewui-tl-media-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.85);
    font-size: 10px;
    font-weight: 500;
    font-family: 'HarmonyOS-Sans', sans-serif;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.lgnewui-tl-media-meta-tag i {
    font-size: 10px;
    opacity: 0.7;
}

/* ============================================
   LIST CARD
   ============================================ */
.lgnewui-time-line-list-items {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 14px;
}

.lgnewui-time-line-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin: 0 -4px;
}

.lgnewui-time-line-list-item::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.04) 50%, transparent 100%);
}

.lgnewui-time-line-list-item:last-child::after {
    display: none;
}

.lgnewui-time-line-list-item:hover {
    background: rgba(239, 68, 68, 0.03);
    transform: translateX(2px);
}

.lgnewui-time-line-list-item:hover .lgnewui-time-line-list-checkbox:not(.checked) {
    border-color: #ef4444;
    transform: scale(1.1);
}

.lgnewui-time-line-list-item:hover .lgnewui-time-line-list-text:not(.checked) {
    color: #1a1a1a;
}

.lgnewui-time-line-list-item:has(.lgnewui-time-line-list-checkbox.checked):hover {
    background: rgba(0, 0, 0, 0.015);
    transform: translateX(1px);
}

.lgnewui-time-line-list-item:hover .lgnewui-time-line-list-checkbox.checked {
    transform: scale(1.02);
}

.lgnewui-time-line-list-checkbox {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    background: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
}

.lgnewui-time-line-list-checkbox::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.lgnewui-time-line-list-item:hover .lgnewui-time-line-list-checkbox:not(.checked)::before {
    opacity: 1;
}

.lgnewui-time-line-list-checkbox.checked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lgnewui-time-line-list-checkbox.checked::before {
    opacity: 0;
}

.lgnewui-time-line-list-checkbox i {
    font-size: 11px;
    font-weight: 700;
}

.lgnewui-time-line-list-text {
    font-size: 15px;
    font-family: 'Noto Serif SC', serif;
    color: #4b5563;
    transition: all 0.25s ease;
    line-height: 1.7;
    flex: 1;
}

.lgnewui-time-line-list-text.checked {
    color: #9ca3af;
    text-decoration: line-through;
    text-decoration-color: #d1d5db;
    text-decoration-thickness: 1.5px;
}

/* ============================================
   GIFT CARD - WITH IMAGE
   ============================================ */
.lgnewui-tl-gift-img-wrap {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.lgnewui-tl-gift-img-inner {
    position: relative;
    width: 100%;
}

.lgnewui-tl-gift-img-inner img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 280px;
}

.lgnewui-tl-gift-img-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-top: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 12px 12px;
}

@supports not (backdrop-filter: blur(24px)) {
    .lgnewui-tl-gift-img-footer {
        background: rgba(0, 0, 0, 0.65);
    }
}

.lgnewui-tl-gift-img-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.lgnewui-tl-gift-img-left i {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.lgnewui-tl-gift-img-name {
    font-weight: 500;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgnewui-tl-gift-img-price {
    flex-shrink: 0;
    margin-left: 10px;
    font-weight: 700;
    font-size: 13px;
    color: #f5d5a0;
    font-family: 'Bodoni Moda', 'Noto Serif SC', serif;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
}

.lgnewui-tl-gift-img-price .lgnewui-tl-gift-sym {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(245, 213, 160, 0.2);
    margin-right: 6px;
    flex-shrink: 0;
    font-style: normal;
}

.lgnewui-tl-gift-img-price .lgnewui-tl-gift-sym::before {
    content: '¥';
    font-size: 10px;
    font-weight: 700;
    font-family: 'HarmonyOS-Sans', sans-serif;
    color: #f5d5a0;
    line-height: 1;
}

/* ============================================
   GIFT CARD - WITHOUT IMAGE
   ============================================ */
.lgnewui-tl-gift-simple {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fef5f5 0%, #fafafa 100%);
}

.lgnewui-tl-gift-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lgnewui-tl-gift-icon-box i {
    font-size: 18px;
    color: #fff;
}

.lgnewui-tl-gift-info {
    flex: 1;
    min-width: 0;
}

.lgnewui-tl-gift-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lgnewui-tl-gift-price {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #c4a17e;
    font-family: 'HarmonyOS-Sans', sans-serif;
    letter-spacing: 0.01em;
}

.lgnewui-tl-gift-price .lgnewui-tl-gift-sym {
    font-style: normal;
    margin-right: 2px;
}

.lgnewui-tl-gift-price .lgnewui-tl-gift-sym::before {
    content: '¥';
    font-size: 12px;
    font-weight: 500;
    font-family: 'HarmonyOS-Sans', sans-serif;
    color: #c4a17e;
    opacity: 0.7;
}

/* Gift Direction — Romantic Ribbon Style */
.lgnewui-tl-gift-dir {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: #c4a17e;
    letter-spacing: 0.05em;
}

.lgnewui-tl-gift-dir::before,
.lgnewui-tl-gift-dir::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8d5c0 50%, transparent);
}

.lgnewui-tl-gift-dir i {
    font-size: 12px;
    color: #e88a8a;
    margin: 0 6px;
}

.lgnewui-tl-gift-dir span {
    margin-right: 6px;
    font-weight: 300;
}

/* ============================================
   MILESTONE CARD
   ============================================ */
.lgnewui-tl-ms-panel {
    margin-top: 14px;
    padding: 36px 24px 28px;
    border-radius: 12px;
    background: linear-gradient(155deg, #fdfcfb 0%, #f8f6f3 50%, #faf8f5 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Corner decorative marks — achievement/certificate style */
.lgnewui-tl-ms-panel::before,
.lgnewui-tl-ms-panel::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(200, 170, 130, 0.35);
    border-style: solid;
    pointer-events: none;
}

.lgnewui-tl-ms-panel::before {
    top: 10px;
    left: 10px;
    border-width: 1.5px 0 0 1.5px;
    border-radius: 3px 0 0 0;
}

.lgnewui-tl-ms-panel::after {
    top: 10px;
    right: 10px;
    border-width: 1.5px 1.5px 0 0;
    border-radius: 0 3px 0 0;
}

.lgnewui-tl-ms-corner-bl,
.lgnewui-tl-ms-corner-br {
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(200, 170, 130, 0.35);
    border-style: solid;
    pointer-events: none;
}

.lgnewui-tl-ms-corner-bl {
    bottom: 10px;
    left: 10px;
    border-width: 0 0 1.5px 1.5px;
    border-radius: 0 0 0 3px;
}

.lgnewui-tl-ms-corner-br {
    bottom: 10px;
    right: 10px;
    border-width: 0 1.5px 1.5px 0;
    border-radius: 0 0 3px 0;
}

.lgnewui-tl-ms-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #e8b87a, #d4956b);
    border-radius: 0 0 3px 3px;
}

.lgnewui-tl-ms-figure {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.lgnewui-tl-ms-value {
    font-size: 42px;
    font-weight: 400;
    color: #1a1a1a;
    font-family: 'Ma Shan Zheng', 'Noto Sans SC', serif;
    line-height: 1.3;
    letter-spacing: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.lgnewui-tl-ms-unit {
    font-size: 14px;
    font-weight: 500;
    color: #b8a08a;
    margin-left: 2px;
}

.lgnewui-tl-ms-divider {
    width: 36px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 130, 0.5), transparent);
    margin: 4px auto 12px;
}

.lgnewui-tl-ms-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #b8a08a;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.lgnewui-tl-ms-category i {
    font-size: 11px;
    color: #d4956b;
}

/* ============================================
   MAP CARD
   ============================================ */
.lgnewui-tl-map-preview {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
    margin-bottom: 12px;
}

.lgnewui-tl-map-preview .lg-minimap-wrap {
    height: 180px !important;
}

.lgnewui-tl-map-preview .lg-minimap-container {
    height: 180px !important;
}

.lgnewui-tl-map-preview .lgmini-info-card {
    padding: 14px 10px 7px;
}

.lgnewui-tl-map-empty {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    margin-bottom: 12px;
}

.lgnewui-tl-map-empty i {
    font-size: 28px;
    color: #cbd5e1;
}

.lgnewui-tl-map-body {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.lgnewui-tl-map-pin {
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
    margin-top: 3px;
}

.lgnewui-tl-map-text {
    min-width: 0;
}

.lgnewui-tl-map-location {
    font-size: 13px;
    color: #6b7280;
    margin-top: 2px;
    display: block;
}


/* ============================================
   FILTER TABS & GENDER BADGE (Extracted from timeline.php)
   ============================================ */

/* ============================================
   AVATAR SWITCHER - 双头像切换器
   ============================================ */
.lgnewui-timeline-avatar-switcher {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 6px 8px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
}

.lgnewui-timeline-avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50px;
    position: relative;
}

.lgnewui-timeline-avatar-item:hover {
    background: rgba(0, 0, 0, 0.03);
}

.lgnewui-timeline-avatar-item.active {
    background: rgba(239, 68, 68, 0.08);
}

.lgnewui-timeline-avatar-item.dimmed {
    opacity: 0.35;
}

.lgnewui-timeline-avatar-item.dimmed:hover {
    opacity: 0.6;
}

.lgnewui-timeline-avatar-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lgnewui-timeline-avatar-item.active img {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lgnewui-timeline-avatar-name {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    font-family: 'Noto Serif SC', serif;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.lgnewui-timeline-avatar-item.active .lgnewui-timeline-avatar-name {
    color: #ef4444;
}

.lgnewui-timeline-avatar-heart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    margin: 0 4px;
}

.lgnewui-timeline-avatar-heart:hover {
    background: rgba(239, 68, 68, 0.08);
    transform: scale(1.1);
}

.lgnewui-timeline-avatar-heart.active {
    background: rgba(239, 68, 68, 0.12);
}

.lgnewui-timeline-avatar-heart i {
    font-size: 18px;
    color: #ef4444;
    transition: transform 0.3s ease;
}

.lgnewui-timeline-avatar-heart.active i {
    transform: scale(1.15);
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1.3);
    }
}

/* Mobile 适配 */
@media (max-width: 768px) {
    .lgnewui-timeline-avatar-switcher {
        top: 70px;
        padding: 5px 6px;
        border-radius: 50px;
    }

    .lgnewui-timeline-avatar-item {
        padding: 4px 12px;
    }

    .lgnewui-timeline-avatar-item img {
        width: 36px;
        height: 36px;
    }

    .lgnewui-timeline-avatar-name {
        font-size: 10px;
    }

    .lgnewui-timeline-avatar-heart {
        width: 30px;
        height: 30px;
        margin: 0 2px;
    }

    .lgnewui-timeline-avatar-heart i {
        font-size: 15px;
    }
}

/* 隐藏旧版下拉筛选器 */
.lgnewui-timeline-filter-dropdown {
    display: none;
}

/* 旧的侧边栏筛选器样式（已弃用，保留兼容） */
/* Pill Bar Style - Black/White/Gray */
.lgnewui-time-line-filter-tabs {
    display: none;
    /* 隐藏旧版 */
    position: fixed;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
}

.lgnewui-time-line-filter-container {
    display: flex;
    flex-direction: column;
    background: #e5e7eb;
    border-radius: 9999px;
    padding: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lgnewui-time-line-filter-tab {
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: transparent;
    color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 0;
    margin: 0;
}

.lgnewui-time-line-filter-tab.active {
    color: #1a1a1a;
}

.lgnewui-time-line-filter-tab i {
    font-size: 20px;
    line-height: 1;
    display: block;
}

.lgnewui-time-line-filter-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(100% - 8px);
    height: 48px;
    background: white;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    z-index: 1;
}

/* Tooltip on hover */
.lgnewui-time-line-filter-tab::after {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 16px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.lgnewui-time-line-filter-tab:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Small arrow for tooltip */
.lgnewui-time-line-filter-tab::before {
    content: '';
    position: absolute;
    right: calc(100% + 8px);
    width: 0;
    height: 0;
    border-left: 6px solid rgba(0, 0, 0, 0.85);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lgnewui-time-line-filter-tab:hover::before {
    opacity: 1;
}

/* Gender Badge on Avatar */
/* 头像 ring/gender-badge 已迁移到公共 .lg-author 组件 */

/* Header Override */
.lgnewui-time-line-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

@media (max-width: 768px) {
    .lgnewui-time-line-filter-tabs {
        right: 16px;
    }

    .lgnewui-time-line-filter-tab {
        width: 44px;
        height: 44px;
    }

    .lgnewui-time-line-filter-slider {
        height: 44px;
    }

    .lgnewui-time-line-filter-tab i {
        font-size: 18px;
    }

    .lgnewui-time-line-filter-tab::after,
    .lgnewui-time-line-filter-tab::before {
        display: none;
    }
}

/* ============================================
   RESPONSIVE - SMALL SCREENS (640px+)
   ============================================ */
@media (min-width: 640px) {

    .lgnewui-time-line-card-header {
        padding: 24px 24px 12px;
    }

    /* avatar/author-name 响应式已由公共 .lg-author 处理 */

    .lgnewui-time-line-author-subtitle {
        font-size: 12px;
    }

    .lgnewui-time-line-meta {
        gap: 5px;
    }

    .lgnewui-time-line-meta-item {
        padding: 3px 8px 3px 3px;
    }

    .lgnewui-time-line-meta-item i {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .lgnewui-time-line-date-badge {
        padding-left: 16px;
        gap: 10px;
    }

    .lgnewui-time-line-date-day {
        font-size: 32px;
    }

    .lgnewui-time-line-date-divider {
        height: 24px;
    }

    .lgnewui-time-line-card-title {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .lgnewui-time-line-card-desc {
        font-size: 15px;
    }

    .lgnewui-time-line-quote-icon i {
        font-size: 24px;
    }

    .lgnewui-time-line-signature {
        font-size: 24px;
    }

    .lgnewui-time-line-media-card .lgnewui-time-line-card-content {
        padding: 16px;
    }

    .lgnewui-time-line-media-container {
        margin-bottom: 16px;
    }

    .lgnewui-time-line-gift-title {
        margin-bottom: 8px;
    }

    .lgnewui-tl-ms-value {
        font-size: 36px;
    }

    .lgnewui-tl-map-preview {
        height: 220px;
    }

    .lgnewui-tl-map-preview .lg-minimap-wrap,
    .lgnewui-tl-map-preview .lg-minimap-container {
        height: 220px !important;
    }

    .lgnewui-time-line-ticket-content {
        padding: 16px 28px 32px;
    }

    .lgnewui-time-line-ticket-route {
        margin-bottom: 32px;
    }

    .lgnewui-time-line-ticket-city-code {
        font-size: 36px;
    }

    .lgnewui-time-line-ticket-city-name {
        font-size: 14px;
    }

    .lgnewui-time-line-ticket-qr i {
        font-size: 36px;
    }
}

/* ============================================
   RESPONSIVE - MEDIUM SCREENS (768px+)
   ============================================ */
@media (min-width: 768px) {

    .lgnewui-time-line-spacer {
        height: 128px;
    }

    .lgnewui-time-line-year-section {
        flex-direction: row;
        margin-bottom: 192px;
    }

    .lgnewui-time-line-year-badge-mobile {
        display: none;
    }

    .lgnewui-time-line-year-sidebar {
        display: block;
        width: 25%;
        flex-shrink: 0;
        padding-right: 48px;
        text-align: right;
        position: relative;
    }

    .lgnewui-time-line-track-wrapper {
        display: block;
        width: 1px;
        position: relative;
        margin-right: 48px;
    }

    .lgnewui-time-line-track-mobile {
        display: none;
    }

    .lgnewui-time-line-event {
        padding-left: 0;
    }

    .lgnewui-time-line-node-wrapper-pc {
        display: flex;
        position: absolute;
        left: -48px;
        top: 41px;
        transform: translateY(-50%);
        width: 0;
        justify-content: center;
        align-items: center;
        z-index: 10;
    }

    .lgnewui-time-line-node-wrapper-mobile {
        display: none;
    }
}


/* ============================================
   AUDIO PLAYER - WAVESURFER STYLE 01 (Capsule)
   ============================================ */

.lgnewui-timeline-audio-wrapper {
    width: 100%;
    position: relative;
    margin-top: 14px;
    --audio-bar-width: 1.5px;
    --audio-bar-gap: 1.5px;
    --audio-skeleton-color: #cbd5e1;
}

.lgnewui-timeline-audio-container {
    background-color: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 999px;
    padding: 8px 20px 8px 8px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Play Button */
.lgnewui-timeline-audio-play-btn {
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.1s ease;
}

.lgnewui-timeline-audio-play-btn:active {
    transform: scale(0.95);
}

.lgnewui-timeline-audio-play-btn i {
    font-size: 18px;
}

/* Wave Area Wrapper (for cursor overflow) */
.lgnewui-timeline-audio-wave-area {
    flex: 1;
    position: relative;
    overflow: visible;
}

/* Wave Container */
.lgnewui-timeline-audio-wave {
    width: 100%;
    height: 24px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 20px;
}

/* Custom Cursor Line (matching admin style) */
.lgnewui-timeline-audio-cursor {
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.55) 25%, rgba(15, 23, 42, 0.55) 75%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: left 0.05s linear;
}

/* Duration Text */
.lgnewui-timeline-audio-duration {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    opacity: 1;
    margin-left: 8px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    min-width: 45px;
    text-align: right;
}

/* Skeleton Loading Logic */
.lgnewui-timeline-audio-wave::before {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    left: 0;
    width: 100%;
    background-image: repeating-linear-gradient(90deg,
            var(--audio-skeleton-color),
            var(--audio-skeleton-color) var(--audio-bar-width),
            transparent var(--audio-bar-width),
            transparent calc(var(--audio-bar-width) + var(--audio-bar-gap)));
    z-index: 1;
    opacity: 1;
    transition: opacity 0.5s ease;
    border-radius: 2px;
}

.lgnewui-timeline-audio-wrapper.lgnewui-timeline-audio-loading .lgnewui-timeline-audio-wave::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.5) 50%,
            transparent 100%);
    transform: translateX(-100%);
    animation: lgnewui-audio-shimmer 1.5s infinite;
    z-index: 2;
}

@keyframes lgnewui-audio-shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.lgnewui-timeline-audio-wrapper.lgnewui-timeline-audio-loaded .lgnewui-timeline-audio-wave::before {
    opacity: 0;
}

.lgnewui-timeline-audio-wrapper.lgnewui-timeline-audio-loaded .lgnewui-timeline-audio-wave::after {
    display: none;
}

/* Hide canvas while loading */
.lgnewui-timeline-audio-wrapper.lgnewui-timeline-audio-loading wave {
    opacity: 0;
}

/* Spinner Animation */
.lgnewui-timeline-audio-play-btn .ph-spinner {
    animation: lgnewui-audio-spin 1s linear infinite;
}

@keyframes lgnewui-audio-spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVE - LARGE SCREENS (1024px+)
   ============================================ */
@media (min-width: 1024px) {
    .lgnewui-time-line-track-wrapper {
        margin-right: 64px;
    }

    .lgnewui-time-line-node-wrapper-pc {
        left: -64px;
    }
}