.journey-container-wrapper {
    position: relative;
    left: 0;
    margin-top: 30px;
    width: 100%;
    overflow: hidden
}

.journey-container-wrapper * {
    transition: .25s
}

#journey-container {
    display: flex;
    padding: 0 80px 10px 80px;
    white-space: nowrap;
    overflow-y: hidden;
    overflow-x: scroll;
    scrollbar-width: thin;
    scrollbar-color: var(--theme-color) var(--black-a-10);
    scroll-padding: 0 80px;
    -webkit-overflow-scrolling: touch
}

#journey-container::-webkit-scrollbar {
    height: 10px
}

#journey-container::-webkit-scrollbar-track {
    background: var(--black-a-5);
    border-radius: 999px
}

#journey-container::-webkit-scrollbar-thumb {
    background: var(--theme-color);
    border-radius: 999px
}

#journey-container::-webkit-scrollbar-thumb:hover {
    background: var(--theme-color-active)
}

#journey-container div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 0 0 250px;
    width: 250px;
    max-width: 78vw;
    box-sizing: border-box;
    white-space: normal;
    margin: 0 5px;
    padding: 10px 20px;
    border-radius: 10px;
    background-color: var(--black-a-5);
    text-align: left
}

.journey-item-date,
.journey-item-fade-out {
    margin: 0;
    font-size: 18px;
    font-weight: 700
}

.journey-item-date {
    margin-bottom: 3px;
    color: var(--txt-b-pure);
    white-space: nowrap
}

.journey-item-content {
    margin: 0;
    color: var(--black-a-80);
    font-size: 14px;
    line-height: 1.6
}

.journey-item-fade-out {
    color: var(--black-a-20)
}

.journey-mask {
    position: absolute;
    top: 0;
    width: 80px;
    height: 100%;
    pointer-events: none
}

.journey-mask.left {
    left: 0;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0), var(--bg-white-pure))
}

.journey-mask.right {
    left: calc(100% - 80px);
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), var(--bg-white-pure))
}


footer {
    padding: 100px 0 95px
}

footer div {
    display: inline-block;
    position: relative;
    text-align: left;
    vertical-align: top;
    padding: 0 50px
}

footer p {
    margin-top: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff
}

footer a {
    display: inline-block;
    margin-bottom: 5px;
    border-bottom: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    font-size: 12px
}

footer a:hover {
    border-color: #fff
}

footer a:active {
    opacity: .6
}

/* 感谢链接：长句子换行，电脑左对齐、手机居中 */
.thanks-link {
    display: block;
    max-width: 340px;
    margin-bottom: 8px;
    border-bottom: 0;
    line-height: 1.65;
    text-align: left;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .35);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.thanks-link:hover {
    text-decoration-color: #fff;
}

/* 联系方式：图标 + 文字，整行可点 */
.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    line-height: 1.3;
    text-align: left;
}

.contact-link .contact-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #fff;
    pointer-events: none;
    transition: color .2s, transform .2s;
}

.contact-link:hover .contact-icon {
    color: var(--theme-color);
    transform: translateY(-1px) scale(1.08);
}

/* 页脚版权声明 */
.footer-notice {
    margin: 24px auto 0;
    padding: 0 20px;
    max-width: 680px;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

#copyright p {
    font-size: 12px
}

.legal-text-container {
    position: relative;
    top: -6px
}

.legal-text-container a {
    color: rgba(255, 255, 255, .5) !important
}

.legal-text-container a:active,
.legal-text-container a:hover {
    border-color: rgba(255, 255, 255, .5)
}


@media screen and (max-width:600px) {
    h1 {
        font-size: 66px
    }

    h2 {
        font-size: 14px;
        line-height: 12px
    }

    footer {
        padding-bottom: 60px
    }

    footer div {
        padding: 0 30px 30px 30px
    }

    #copyright {
        text-align: center
    }
    #typing-text {
        display: inline-block;
        min-width: 2px; /* 防止完全空白时布局错位 */
        border-right: 2px solid rgba(255,255,255,0.8); /* 光标效果 */
        padding-right: 3px;
        animation: blink 0.7s infinite;
    }
    
    @keyframes blink {
        0%, 100% { border-color: transparent; }
        50% { border-color: rgba(255,255,255,0.8); }
    }
    
    @media (max-width: 600px) {
        #typing-text {
            max-width: 80vw; /* 移动端限制最大宽度 */
            white-space: pre-wrap; /* 允许换行 */
        }
    }
    /* 在0.css中优化动画流畅度 */
    #typing-text {
    display: inline-block;
    min-width: 2px;
    border-right: 2px solid rgba(255,255,255,0.8);
    padding-right: 3px;
    animation: blink 0.7s step-end infinite; /* 改为step-end使光标更稳定 */
    }

    @keyframes blink {
    0%, 100% { border-color: transparent; }
    50% { border-color: rgba(255,255,255,0.8); }
    }

     /* 新增删除动画效果 */
    @keyframes deleting {
    from { opacity: 1; }
    to { opacity: 0.5; }
    }

    .is-deleting {
    animation: deleting 0.1s linear infinite alternate;
    }
    @media screen and (max-width:600px) {
        h1 {
            font-size: 66px
        }
    
        #digital-clock .hours, 
        #digital-clock .minutes {
            font-size: 4rem !important; 
        }
        h1.font-zdy-1 {
            font-size: 50px !important;
        }
        #digital-clock {
            margin-bottom: 10px !important;
        }
    
        /* 原有其他样式保持不变... */
        
        #typing-text {
            display: inline-block;
            min-width: 2px;
            border-right: 2px solid rgba(255,255,255,0.8);
            padding-right: 3px;
            animation: blink 0.7s step-end infinite;
        }
    }
}

/* 手机端把日志两侧的留白收窄，卡片能多露出一点 */
@media screen and (max-width: 600px) {
    #journey-container {
        padding-left: 30px;
        padding-right: 30px;
        scroll-padding: 0 30px;
    }
    .journey-mask {
        width: 30px;
    }
    .journey-mask.right {
        left: calc(100% - 30px);
    }
}

/* 日记改为“按住拖动”：电脑和手机都直接拖，不再用左右按钮 */
#journey-container {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    overscroll-behavior-x: contain;
}

#journey-container.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
}

#journey-container,
#journey-container * {
    user-select: none;
    -webkit-user-select: none;
}

/* 手机端页脚：三栏改成纵向排列并居中 */
@media screen and (max-width: 760px) {
    footer div {
        display: block;
        padding: 0 20px 26px;
        text-align: center;
    }

    footer p,
    footer a {
        text-align: center;
    }

    .contact-link {
        justify-content: center;
    }

    .thanks-link {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .legal-text-container {
        display: inline-block;
    }
}