/* AboutMe Page CSS - aboutMe页面特有样式 */

/* aboutMe页面特有 - Hero 内容调整 */
.hero-content {
    gap: var(--spacing-12);
    padding: 0px 0px var(--spacing-12);
}

/* 淡入向上动画 */
@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 关于我标题 - 根据Figma设计稿修复 */
.about-title {
  background: linear-gradient(180deg, var(--base-default-foreground, #FFF) 12.99%, var(--base-background-white-20, rgba(255, 255, 255, 0.20)) 88.96%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: var(--font-family-primary);
    font-size: 64px;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    /* text-transform: uppercase; */
    margin: 0;
    padding: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

/* 副标题 - 根据Figma设计稿修复颜色和字体 */
.about-subtitle {
    width: var(--text-width);
    max-width: 100%;
    color: var(--color-muted);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
}



/* 弹幕徽章 - 三层嵌套结构！！！容器 */
.danmaku-badges {
    display: flex;
    gap: var(--spacing-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
}

/* 弹幕徽章 - 最外层 - 渐变色外框 */
.danmaku-badge-outer {
    display: inline-block;
    border-radius: var(--radius-3xl);
    border: 1px solid #ffffff1c;
}

/* 弹幕徽章 - 第二层 - 渐变色背景 */
.danmaku-badge-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-4) var(--spacing-5);
    border-radius: var(--radius-3xl);
    background: radial-gradient(50% 50% at 50% 100%, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: var(--backdrop-blur-sm);
    -webkit-backdrop-filter: var(--backdrop-blur-sm);
}

/* 弹幕徽章 - 第三层 - 渐变色文字 */
.danmaku-badge-inner {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl); 
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-normal);
    text-align: center;
    position: relative;
    /* overflow: hidden; */
    color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 100%);
    transition: background-image 0.3s ease;
}


.danmaku-badge-outer:hover .danmaku-badge-inner {
    background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 1) 0%, rgb(255, 255, 255) 100%);
    transition: background-image 0.3s ease;
    cursor: default;
}

/* 2行弹幕布局 */
.danmaku-section {
    width: 100%;
    max-width: 900px;
    height: 180px;
    position: relative;
    /* overflow: hidden; */
    margin-bottom: 80px;
                    display: flex;
        flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
    /* background: linear-gradient(135deg, rgba(6, 182, 212, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%); */
    border-radius: 12px;
    padding: 0;
    /* box-shadow: 0 4px 20px rgba(16, 185, 129, 0.1); */
    animation: fade-in-up 0.67s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
    /* 使用image-mask优化蒙版效果 */
    -webkit-mask-image: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 1) 8%, 
        rgba(0, 0, 0, 1) 92%, 
        rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(90deg, 
        rgba(0, 0, 0, 0) 0%, 
        rgba(0, 0, 0, 1) 8%, 
        rgba(0, 0, 0, 1) 92%, 
        rgba(0, 0, 0, 0) 100%);
}

.danmaku-content {
    position: relative;
    width: 100%;
    height: 100%;
    /* overflow: hidden; */
    margin: 0px;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0px;
}

.danmaku-row {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 12px;
    position: absolute;
    white-space: nowrap;
    height: auto;
    z-index: 1;
}

.danmaku-badge-outer {
    /* padding: 1px; */
    /* background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.5) 100%); */
    border-radius: 30px;
    position: relative;
        border: 1px solid hsla(0, 0%, 100%, 0.11);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.danmaku-badge-outer:hover {
    transform: translateY(-2px);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    /* box-shadow: 0 24px 12px rgba(255, 255, 255, 0.3); */
    box-shadow: 0px 4px 12px 0px rgba(255, 255, 255, 0.1);
}


/* 博客卡片 */
.blog-card {
    position: relative;
    width: var(--timeline-width);
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: stretch;
    gap: var(--spacing-15);
    padding: var(--spacing-5);
    background: var(--base-primary-200-20);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-clip: padding-box;
    background-origin: padding-box;
    animation: fade-in-up 0.2s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1px;
    background: radial-gradient(50% 50% at 50% 100%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: var(--radius-lg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.titleAndP {
  width: 100%;
  min-width: 400px;
  height: fit-content;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 20px;
  flex-shrink: 0;
  opacity: 0;
}

/* titleAndP阶梯式淡入向上入场动画 */
.titleAndP:nth-child(1) {
  animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.0s both;
}

.titleAndP:nth-child(2) {
  animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.2s both;
}


.blog-gradient {
    position: absolute;
    left: -340px;
    top: 0;
    width: 680px;
    height: 680px;
    background: var(--primary-500);
    border-radius: 50%;
    filter: blur(281.25px);
    opacity: 0.5;
    pointer-events: none;
        transition: opacity 0.8s var(--transition-fast);
}
.blog-card:hover .blog-gradient {
    opacity: 0.8;
    transition: opacity 0.8s var(--transition-fast);
}


.blog-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    gap: var(--spacing-15);
    width: 100%;
}

.blog-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    gap: var(--spacing-5);
}

.blog-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    text-align: left;
    background: var(--base-default-foreground, rgba(255, 255, 255, 1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
      animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.0s both;
}

.blog-description {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-s);
    line-height: var(--line-height-extra-loose);
    text-align: left;
  background: radial-gradient(184.12% 152.78% at -72.5% 126.54%, rgba(139, 110, 255, 1) 0%, rgba(139, 110, 255, 0) 100%), var(--Additional-white, rgba(255, 255, 255, 1));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    /* titleAndP阶梯式淡入向上入场动画 */
      animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.2s both;
}

.blog-arrow {
    width: var(--spacing-6);
    height: var(--spacing-6);
    align-self: flex-start;
          animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.5s both;
          overflow: hidden;
}

.blog-arrow img {
    width: 100%;
    height: 100%;
    /* filter: brightness(2) sepia(1) hue-rotate(30deg); */
}

.blog-image {
        overflow: hidden;
    width: 100%;
    /* max-width: 400px; */
    height: 100%;
    /* flex-shrink: 0; */
/* aspect-ratio: 4/3; */
    border-radius: var(--radius-base);
    background: 
        radial-gradient(circle at 196% 83%, rgba(25, 144, 255, 1) 0%, rgba(25, 144, 255, 0.26) 60%, rgba(25, 144, 255, 0) 100%),
        radial-gradient(circle at 257% 127%, rgba(25, 144, 255, 1) 0%, rgba(25, 144, 255, 0) 100%),
        radial-gradient(circle at 50% 6%, rgba(59, 58, 154, 1) 18%, rgba(59, 58, 154, 0) 82%),
        linear-gradient(-27deg, rgba(95, 46, 255, 1) 0%, rgba(95, 46, 255, 0.08) 100%),
        linear-gradient(153deg, rgba(95, 46, 255, 1) 21%, rgba(95, 46, 255, 0.08) 100%),
        rgba(178, 112, 255, 0.1),
        #5F2EFF,
        #000000;
}

.blog-img-placeholder {
    width: 100%;
    height: 100%;
    background: #333;
    border-radius: var(--radius-base);
}

/* 博客图片样式 */
.blog-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-base);
    transition: transform var(--transition-bounce);
}

/* 博客内部图片悬停放大效果 */
.blog-image:hover .blog-img {
    transform: scale(1.05);
}

/* 博客卡片悬停效果 - 箭头向右上方移动8px */
.blog-card {

    transition: all 0.3s ease;
}
.blog-card .blog-arrow img {
    transform: translate(0px, 0px);
    transition: all 0.3s ease;
}

/* 定义箭头循环弹跳动画 */
@keyframes arrow-bounce-around {
    0% {
        transform: translate(0px, 0px);
        opacity: 1;
    }
    45% {
        transform: translate(20px, -20px); /* 向右上方移动超出容器 */
        opacity: 0;
    }
    50% {
        transform: translate(-15px, 15px); /* 从左下方出现 */
        opacity: 0;
    }
    55% {
        opacity: 1;
    }
    100% {
        transform: translate(0px, 0px); /* 回到原始位置 */
    }
}

/* 应用箭头动画到悬停状态 */
.blog-card:hover .blog-arrow img {
    animation: arrow-bounce-around 1s var(--transition-bounce) both;
}

/* 时间线区域 */
.timeline-section {
    position: relative;
    width: var(--container-width);
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 70px;
    padding: var(--spacing-25) var(--spacing-25) 0 var(--spacing-25);
    animation: fade-in-up 0.67s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.0s both;
    transition: var(--transition-bounce);
}

.timeline-gradient {
    position: absolute;
    left: 356px;
    top: 1066px;
    width: 728px;
    height: 414.21px;
    background: var(--primary-500);
    border-radius: 50%;
    filter: var(--filter-blur-lg);
    opacity: 0.5;
    pointer-events: none;
}
/* 时间线内容区域 */
.timeline-content {
    display: flex;
    flex-direction: column;
    width: var(--timeline-width);
    max-width: 100%;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-10);
    width: 100%;
    opacity: 0;
}

/* 时间线项目阶梯式延迟动画 */
.timeline-content .timeline-item:nth-child(1) {
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.2s both;
}

/* 隐藏第一个时间线项目的顶部线条 */
.timeline-content > .timeline-item:first-child .timeline-line-top {
    opacity: 0;
}

.timeline-content .timeline-item:nth-child(2) {
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.4s both;
}

.timeline-content .timeline-item:nth-child(3) {
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.6s both;
}

.timeline-content .timeline-item:nth-child(4) {
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.8s both;
}

.timeline-date {
    width: 145px;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: var(--spacing-2);
}

.timeline-date span {
    font-family: DINpro;
    font-size: var(--font-size-base);
    font-weight: 100;
    line-height: var(--line-height-loose);
    text-align: right;
    color: var(--color-muted);
    width: 100%;
}

.timeline-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: var(--spacing-3);
    min-height: 200px;
}

.timeline-line-top {
    width: 2px;
    height: 9px;
    background: var(--base-primary-200-20);
}


.timeline-line-top-1 {
        width: 2px;
        height: 6px;
            opacity: 0;
        background: var(--base-primary-200-20);
        /* margin-left: 5px; */
    }

  .timeline-line-top-2{
        width: 2px;
        height: 6px;
            background: var(--base-primary-200-20);
        /* margin-left: 5px; */
    }

.timeline-line-bottom {
    width: 2px;
    flex: 1;
    background: var(--base-primary-200-20);
}

.timeline-dot {
    width: var(--spacing-3);
    height: var(--spacing-3);
    border-radius: 50%;
    position: relative;
}

.timeline-dot.current {
    position: relative;
}

/* 定义时间线圆点扩散动画 */
@keyframes timeline-dot-pulse {
    0% {
        transform: scale(0);
        opacity: 0.0;
        filter: blur(0px);
    }
    50% {
        transform: scale(1);
        opacity: 0.2;
        filter: blur(1px);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        filter: blur(8px);
    }
}

.timeline-dot-outer {
    position: absolute;
    left: -14px;
    top: -14px;
    width: var(--spacing-10);
    height: var(--spacing-10);
    background: var(--color-yellow);
    border-radius: 50%;
    opacity: 0.2;
    animation: timeline-dot-pulse 2s linear infinite;
}

.timeline-dot-inner {
    width: var(--spacing-3);
    height: var(--spacing-3);
    background: var(--color-yellow);
    border-radius: 50%;
}

.timeline-dot.purple {
    background: var(--primary-500);
}

/* 渐变色块样式 */
.timeline-gradient-block {
    /* position: relative; */
    /* left: -14px;
    top: -14px; */
    width: 2px;
    height: 80px;
    /* background: rgba(255, 190, 76, 0.2); */
    background: linear-gradient(180deg, rgba(255, 190, 76, 0.20) 0%, rgba(80, 36, 255, 0.20) 100%);
    /* border-radius: 50%; */
}

.timeline-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-7);
    padding-bottom: var(--spacing-25);
}

.timeline-content-area-egg {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-7);
    padding-bottom: 0;
}


.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.timeline-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    text-align: center;
    color: #FCDA83;
    margin: 0;
}

.timeline-title.purple-title {
    color: #B9A7FF;
}

.timeline-label {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-0) var(--spacing-2);
    border-radius: var(--radius-full);
    font-family: dinpro;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.timeline-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(113deg, rgba(255, 255, 255, 0.00) 32.21%, rgba(255, 255, 255, 0.30) 58.32%, rgba(255, 255, 255, 0.00) 69.02%);
    animation: shine 2s var(--transition-bounce) infinite;
}

.timeline-label.current-label {
    background: var(--color-yellow);
    color: #000000;
}

.timeline-label.purple-label {
    background: var(--primary-500);
    color: var(--base-white);
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-8);
}

.timeline-work-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-1);
}

.work-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: left;
    color: var(--base-white);
    margin: 0;
    position: relative;
    padding: 0;
    transform: none;
    opacity: 1;
}

.work-desc {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-loose);
    text-align: left;
    color: var(--color-muted);
    margin: 0;
}

.timeline-work-images {
    display: flex;
    gap: var(--spacing-7);
    flex-wrap: wrap;
    margin-top: var(--spacing-3);
}

.work-img-placeholder {
    width: 200px;
    height: 112.5px;
    background: #333;
    border: var(--spacing-1) solid #272835;
    border-radius: var(--radius-md);
}

/* 时间线工作图片样式 */
.work-img {
    width: 200px;
    height: 112.5px;
    object-fit: cover;
    border: var(--spacing-1) solid #272835;
    border-radius: var(--radius-md);
    transition: transform var(--transition-normal), filter var(--transition-normal);
    filter: grayscale(100%);
}

.work-img:hover {
    transform: scale(1.05);
    filter: grayscale(0);
}

/* 时间线结束 */
.timeline-end {
    width: var(--timeline-width);
    display: flex;
    gap: var(--spacing-10);
    position: relative;
    opacity: 0;
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 2.0s both;
}

.timeline-end-line {
    width: var(--spacing-3);
    height: var(--spacing-7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-end-dot {
    width: var(--spacing-3);
    height: var(--spacing-3);
    position: relative;
}

.timeline-end-dot-outer {
    position: absolute;
    left: -14px;
    top: -14px;
    width: var(--spacing-10);
    height: var(--spacing-10);
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.1;
    animation: timeline-dot-pulse 2s linear infinite;
}

.timeline-end-dot-inner {
    width: var(--spacing-3);
    height: var(--spacing-3);
    background: var(--primary-500);
    border-radius: 50%;
    opacity: 0.3;
}

.timeline-line-bottom-hidden {
    width: 2px;
    flex: 1;
    background: transparent;
}

/* 彩蛋相关样式 */
.hidden {
    display: none;
}

#timeline-egg-content {
    margin-top: 0px;
}

.egg-label {
    background: linear-gradient(150deg, rgba(14, 10, 173, 1) 0%, rgba(219, 102, 244, 1) 50%, rgba(224, 193, 254, 1) 100%);
    color: white;
    text-shadow: 0px 0px 2px rgba(202, 53, 235, 0.8);
    position: relative;
    overflow: hidden;
}

.egg-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
background: linear-gradient(113deg, rgba(255, 255, 255, 0.00) 32.21%, rgba(255, 255, 255, 0.30) 58.32%, rgba(255, 255, 255, 0.00) 69.02%);
    animation: shine 2s var(--transition-bounce) infinite;
}

.work-egg-title {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-relaxed);
    text-align: left;
    color: var(--base-white);
    margin: 0;
    position: relative;
    padding: 0;
    transform: none;
    opacity: 1;
}

/* 为第1和第3个元素添加过渡效果 */
.work-egg-title:nth-of-type(1),
.work-egg-title:nth-of-type(3) {
    transition: all 0.5s ease;
}

/* .work-egg-title span {
    font-size: var(--font-size-4xl);
    color: var(--base-white);
} */

.egg-content{
    font-family: var(--font-family-primary);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    text-align: left;
    color: var(--base-white);
    margin: 0;
    position: relative;
    padding: 0;
    transform: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.work-egg-desc {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-loose);
    text-align: left;
    color: var(--color-muted);
    margin: 0;
    transition: opacity 0.5s ease;
}

/* 让timeline-end-dot-inner可点击 */
#timeline-end-dot-inner {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#timeline-end-dot-inner:hover {
    transform: scale(1.2);
}

.timeline-end-dot-outer{
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* #timeline-end-dot-outer:hover {
    transform: scale(1.2);
} */


/* aboutMe页面特有响应式设计 */
/*
@media (max-width: 1440px) {
        .titleAndP {
        width: 100%;
        min-width: 400px;
    }
    .danmaku-section {
        width: 100%;
        max-width: 900px;
        
    }
    
    .danmaku-row {
        animation-duration: 20s;
    }
    
    .danmaku-row:nth-child(1) {
        animation-duration: 22s;
    }
    
    .danmaku-row:nth-child(2) {
        animation-duration: 25s;
    }
        /* 小屏幕下博客图片响应式调整 */
    /* .blog-content {
        flex-direction: column;
    }
    .blog-card {
        width: 100%;
        max-width: 700px;
        flex-direction: column;
        gap: var(--spacing-7);
    }
    
    /* 确保图片容器撑满 */
    /* .blog-image {
        display: flex;
        width: 398px;
        height: max-content;
        min-height: 200px;
        flex: 0 0 100%;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        transition: transform var(--transition-normal);
    }
    
    /* 悬停图片时放大效果 */
    /* .blog-image:hover {
        transform: scale(1.05);
    }
    
    .timeline-section {
        padding: var(--spacing-15) var(--spacing-7);
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-item {
        flex-direction: column;
        gap: var(--spacing-5);
    }
    
    .timeline-date {
        width: 100%;
        justify-content: flex-start;
    }
    
    .timeline-date span {
        text-align: left;
    }
    
    .timeline-line {
        display: none;
    }
}

/* 全局动画定义，确保在所有分辨率下可用 */
@keyframes shine {
    0% {
        left: -100%;
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

@media (max-width: 768px) {
    /* 防止移动端横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* 768px分辨率下，div元素比例缩小为75% */
    .danmaku-section, .danmaku-content {
        transform: scale(0.75);
        transform-origin: center;
        width: calc(100% / 0.75);
        margin-left: calc((100% - (100% / 0.75)) / 2);
    }
    
    /* 768px分辨率下，hero-content的padding为20px */
    .hero-content {
        padding: 20px;
    }
    
    .about-title {
        font-size: 48px;
        line-height: 1.2;
    }
    
    .about-subtitle {
        width: 100%;
        padding: 0 var(--spacing-5);
        font-size: 14px;
        line-height: 1.55;
    }
    
    .danmaku-section {
margin-bottom: 0px;

    }
    
    .danmaku-row {
        gap: var(--spacing-5);
        animation-duration: 18s;
    }
    
    .danmaku-row:nth-child(1) {
        animation-duration: 20s;
    }
    
    .danmaku-row:nth-child(2) {
        animation-duration: 22s;
    }
    
    .danmaku-badge {
        font-size: var(--font-size-base);
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    .blog-card {
        width: 100%;
        padding: var(--spacing-4);
        gap: var(--spacing-5);
    }
    
    .titleAndP {
        width: 100%;
        min-width: 0px;
        height: fit-content;
        display: inline-flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 20px;
        flex-shrink: 0;
    }
    .blog-title {
        font-size: var(--font-size-2xl);
    }
    
    .blog-description {
        font-size: var(--font-size-sm);
    }
    
    /* 小屏幕下博客图片响应式调整 */
    .blog-content {
        flex-direction: column;
    }
    
    .blog-image {
        width: 100%;
        height: 100%;
        order: 2; /* 让图片在文字下方 */
    }
    
    .blog-text {
        order: 1;
    }

    .timeline-section {
        padding: var(--spacing-15) var(--spacing-7) 0  var(--spacing-7) ;
    }
    
    
    .timeline-work-images {
        flex-wrap: wrap;
        gap: var(--spacing-3);
    }
    
    .work-img{
        width: 110px;
        height: 62px;    
    }

    .work-img-placeholder {
        width: 110px;
        height: 62px;
    }
    
    /* 768px分辨率下，timeline-date变为另一侧 */
    .timeline-item {
        flex-direction: column;
        gap: var(--spacing-2);
        position: relative;
        padding-left: var(--spacing-10);
    }
    
    .timeline-date {

        width: 100%;
        justify-content: flex-start;
    }
    
    .timeline-date span {
                font-weight: 350;
        text-align: left;
    }
    
    /* 768px分辨率下，timeline-line为绝对定位，在左侧 */
    .timeline-line {
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: var(--spacing-10);
        align-items: flex-start;
    }
    

  .timeline-line-top{
        width: 2px;
        height: 41px;
        margin-left: 5px;
    }

    .timeline-line-top-1{
        width: 2px;
        height: 41px;
        margin-left: 5px;
    }

  .timeline-line-top-2{
        width: 2px;
        height: 8px;
        /* margin-left: 5px; */
    }

    .timeline-end-line {
    width: var(--spacing-3);
    height: var(--spacing-7);
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .timeline-line-bottom {
        /* width: 100%; */
        /* position: absolute; */
        height: 2px;
        background: var(--base-primary-200-20);
        margin-left: 5px;
    }
    
    .timeline-gradient-block {
            margin-left: 5px;
    }

    .timeline-line-bottom {
        flex: 1;
    }
    
    /* 修复768px分辨率下timeline-end-dot的位置，使其与timeline-dot.current一致 */
    .timeline-end {
        flex-wrap: wrap;
        /* display: block; */
        /* position: absolute; */
        /* padding-left: var(--spacing-10); */
    }
    

    
    /* 使timeline-end中的timeline-date不占空间 */
    .timeline-end .timeline-date {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .timeline-header {
margin-bottom: 16px;
}
    
    /* 修复：避免彩蛋文案在小屏切换时发生重叠 */
    .timeline-content-area-egg {
        position: relative;
        overflow: hidden;
    }
    .timeline-content-area-egg .work-egg-title,
    .timeline-content-area-egg .work-egg-desc {
        position: relative;
        z-index: 1;
        width: 100%;
        display: block;
    }

    .timeline-hint {
    /* position: relative; */
    margin: 0;
    /* bottom: 20px; */
    padding: 0;
    border-radius: 0 8px 8px 0;
    font-size: var(--font-size-xs);
    line-height: 1.6;
    color: #333;
}

} /* 闭合@media (max-width: 768px) */

/* @media (max-width: 480px) {
    .about-title {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .about-subtitle {
        font-size: 12px;
        line-height: 1.5;
    }
    
    .danmaku-section {
        height: 120px;
        padding: var(--spacing-2) 0;
    }
    
    .danmaku-content {
        height: 100px;
        gap: var(--spacing-4);
    }
    
    .danmaku-row {
        gap: var(--spacing-4);
        animation-duration: 15s;
    }
    
    .danmaku-row:nth-child(1) {
        animation-duration: 16s;
    }
    
    .danmaku-row:nth-child(2) {
        animation-duration: 18s;
    }
    
    .danmaku-badge {
        font-size: var(--font-size-sm);
        padding: var(--spacing-2) var(--spacing-3);
    }
    
    .timeline-section {
        padding: var(--spacing-10) var(--spacing-5);
    }
    
    /* 超小屏幕下博客图片进一步优化 */
    /* .blog-image {
        width: 100%;
        height: 100%;
        max-height: 250px;
    }
    
    .work-img-placeholder {
        width: 120px;
        height: 68px;
    }
} */

/* 知识库链接样式 */
.knowledge-base-link {
    color: #967CFF;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.knowledge-base-link:hover {
    color: #B9A7FF;
}

/* 时间轴提示样式 */
.timeline-hint {
    position: relative;
    margin: 100px 0 0 0;
    bottom: 40px;
    max-width: 800px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-size: var(--font-size-xs);
    line-height: 1.6;
    color: #333;
}

.timeline-hint p {
    margin: 0;
}

