/* 最新发布页 Hero */
.tiny-latest-hero {
    --tl-accent: #3b82f6;
    position: relative;
    overflow: hidden;
    padding: 56px 0 0;
    margin-bottom: 32px;
    background-color: #f6f7f9;
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tiny-latest-hero-inner {
    position: relative;
    z-index: 3;
    padding-bottom: 46px;
}

.tiny-latest-hero-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.tiny-latest-hero-glow {
    position: absolute;
    top: -180px;
    left: -120px;
    width: 560px;
    height: 460px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(closest-side, var(--tl-accent), transparent);
    opacity: 0.12;
}

.tiny-latest-hero-watermark {
    position: absolute;
    top: 50%;
    right: -1.5%;
    z-index: 0;
    transform: translateY(-50%);
    font-size: clamp(72px, 13vw, 180px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(15, 23, 42, 0.035);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.tiny-latest-hero-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 0.8rem;
}

.tl-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--tl-accent);
    text-transform: uppercase;
}

.tl-kicker i {
    font-size: 0.75rem;
}

.tl-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 10px;
    border: 1px solid var(--tl-accent);
    border-radius: 999px;
    font-weight: 600;
    color: var(--tl-accent);
    background-color: rgba(255, 255, 255, 0.6);
}

.tl-live-dot {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--tl-accent);
}

.tl-live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--tl-accent);
    border-radius: 50%;
    opacity: 0;
    animation: tlLivePulse 1.8s ease-out infinite;
}

@keyframes tlLivePulse {
    0% {
        transform: scale(0.6);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.7);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.tl-updated {
    margin-left: auto;
    color: rgba(15, 23, 42, 0.5);
    font-size: 0.78rem;
}

.tl-updated-text {
    color: rgba(15, 23, 42, 0.72);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.tl-title {
    position: relative;
    margin: 0 0 18px;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #14171f;
}

.tl-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 16px;
    border-radius: 2px;
    background-color: var(--tl-accent);
}

.tl-desc {
    max-width: 720px;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(15, 23, 42, 0.62);
}

.tl-desc p:last-child {
    margin-bottom: 0;
}

.tl-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 24px;
}

.tl-stat {
    padding: 0 26px;
    border-left: 1px solid rgba(15, 23, 42, 0.1);
}

.tl-stat:first-child {
    padding-left: 0;
    border-left: 0;
}

.tl-stat strong {
    display: block;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #14171f;
    font-variant-numeric: tabular-nums;
}

.tl-stat span {
    display: block;
    margin-top: 2px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(15, 23, 42, 0.5);
}

.tl-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tl-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.75);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tl-cat:hover {
    border-color: var(--tl-accent);
    color: var(--tl-accent);
    transform: translateY(-1px);
}

.tl-ticker {
    position: relative;
    z-index: 3;
    background-color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tl-ticker-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 46px;
}

.tl-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding-right: 16px;
    border-right: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--tl-accent);
}

.tl-ticker-viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.tl-ticker-track {
    display: flex;
    width: max-content;
    animation: tlTickerMove 38s linear infinite;
}

.tl-ticker:hover .tl-ticker-track {
    animation-play-state: paused;
}

.tl-ticker-group {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.tl-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-right: 24px;
    font-size: 0.85rem;
    color: rgba(15, 23, 42, 0.72);
    text-decoration: none;
    white-space: nowrap;
}

.tl-ticker-item::before {
    content: '';
    flex: 0 0 auto;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--tl-accent);
    opacity: 0.5;
}

.tl-ticker-group > .tl-ticker-item:first-child::before {
    display: none;
}

a.tl-ticker-item:hover {
    color: var(--tl-accent);
    text-decoration: none;
}

.tl-ticker-date {
    font-size: 0.72rem;
    color: rgba(15, 23, 42, 0.42);
    font-variant-numeric: tabular-nums;
}

@keyframes tlTickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.tiny-latest-hero-head,
.tl-title,
.tl-desc,
.tl-stats,
.tl-cats {
    animation: tlFadeUp 0.5s ease both;
}

.tl-title {
    animation-delay: 0.05s;
}

.tl-desc {
    animation-delay: 0.1s;
}

.tl-stats {
    animation-delay: 0.15s;
}

.tl-cats {
    animation-delay: 0.2s;
}

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

[data-bs-theme="dark"] .tiny-latest-hero {
    background-color: #0f1114;
    border-top-color: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .tiny-latest-hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

[data-bs-theme="dark"] .tiny-latest-hero-glow {
    opacity: 0.18;
}

[data-bs-theme="dark"] .tiny-latest-hero-watermark {
    color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .tl-live {
    background-color: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .tl-updated {
    color: rgba(255, 255, 255, 0.45);
}

[data-bs-theme="dark"] .tl-updated-text {
    color: rgba(255, 255, 255, 0.78);
}

[data-bs-theme="dark"] .tl-title {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .tl-desc {
    color: rgba(243, 244, 246, 0.6);
}

[data-bs-theme="dark"] .tl-stat {
    border-left-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .tl-stat strong {
    color: #f3f4f6;
}

[data-bs-theme="dark"] .tl-stat span {
    color: rgba(255, 255, 255, 0.45);
}

[data-bs-theme="dark"] .tl-cat {
    border-color: rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(243, 244, 246, 0.78);
}

[data-bs-theme="dark"] .tl-cat:hover {
    border-color: var(--tl-accent);
    color: var(--tl-accent);
}

[data-bs-theme="dark"] .tl-ticker {
    background-color: rgba(255, 255, 255, 0.03);
    border-top-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .tl-ticker-label {
    border-right-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .tl-ticker-item {
    color: rgba(243, 244, 246, 0.7);
}

[data-bs-theme="dark"] .tl-ticker-date {
    color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 768px) {
    .tiny-latest-hero {
        margin-bottom: 20px;
        padding-top: 40px;
    }

    .tiny-latest-hero-inner {
        padding-bottom: 36px;
    }

    .tiny-latest-hero-watermark {
        right: -6%;
        font-size: clamp(64px, 22vw, 120px);
    }

    .tiny-latest-hero-head {
        gap: 8px 12px;
        margin-bottom: 14px;
    }

    .tl-updated {
        width: 100%;
        margin-left: 0;
    }

    .tl-title {
        margin-bottom: 16px;
    }

    .tl-title::after {
        margin-top: 12px;
    }

    .tl-desc {
        margin-bottom: 20px;
        font-size: 0.92rem;
    }

    .tl-stat {
        padding: 0 16px;
    }

    .tl-stat strong {
        font-size: 1.3rem;
    }

    .tl-ticker-inner {
        height: 42px;
        gap: 12px;
    }

    .tl-ticker-label {
        padding-right: 12px;
    }

    .tl-ticker-item {
        padding-right: 18px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tl-stats {
        margin-bottom: 20px;
    }

    .tl-stat {
        padding: 0 12px;
    }

    .tl-stat:first-child {
        padding-left: 0;
    }

    .tl-stat strong {
        font-size: 1.2rem;
    }

    .tl-stat span {
        font-size: 0.72rem;
    }

    .tl-cat {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tiny-latest-hero-head,
    .tl-title,
    .tl-desc,
    .tl-stats,
    .tl-cats {
        animation: none;
    }

    .tl-live-dot::after {
        animation: none;
        opacity: 0;
    }

    .tl-ticker-track {
        animation: none;
    }

    .tl-ticker-viewport {
        overflow-x: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }
}
