/* Index Portfolio CSS - 首页作品集特有样式 */

/* 首页特有 - Hero 区域样式 */
.hero {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: stretch;
    gap: var(--spacing-25);
    /* padding: 124px var(--spacing-25) var(--spacing-25); */
}

/* 天空背景 - 精确尺寸和位置 */
.sky-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: var(--container-width);
    height: 770px;
    pointer-events: none;
}

.gradient-ellipse {
    position: absolute;
    left: 356px;
    top: -210px;
    width: 728px;
    height: 414.21px;
    background: var(--primary-500);
    border-radius: 50%;
    filter: blur(250px);
}

/* 首页特有 - Hero 内容调整 */
.hero-content {
    margin-top: 174px;
    gap: var(--spacing-25);
    padding: 0px 0px var(--spacing-12);
}

/* 徽章 - 三层嵌套结构 */
.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;
}

/* 最外层 - 渐变色外框 */
.badge-outer {
    display: inline-block;
    /* padding: 1px; 边框厚度 */
    border-radius: var(--radius-3xl);
    border: 1px solid #ffffff1c;
    /* background: linear-gradient(135deg, rgba(255, 255, 255, 0.288) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.247) 100%); */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
}

/* 第二层 - 渐变色背景 */
.badge-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-4);
    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);
}

/* 第三层 - 渐变色文字 */
.badge-inner {
    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;
    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保持一致 */
.badge-outer:hover {
    transform: translateY(-2px);
    border: 1px solid hsla(0, 0%, 100%, 0.3);
    box-shadow: 0px 4px 12px 0px rgba(255, 255, 255, 0.1);
}

.badge-outer:hover .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;
}

/* 保留原badge样式以保持兼容性 */
.badge {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-3);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-3xl);
    border: 1px solid var(--base-white);
    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);
    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;
    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%);
}

/* 主标题 - 精确对应设计稿样式 */
.hero-title {
    /* background: var(--gradient-primary); 这个变量不对*/
    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: 56px;
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    /* text-transform: uppercase; */
    margin: 0;
    padding: 0;
    /* 文字动画效果 */
    animation: focus-in-expand 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.5s both;
}

/* ---------------------------------------------- 
 * Generated by Animista on 2025-9-17 0:48:20 
 * Licensed under FreeBSD License. 
 * See `http://animista.net/license`  for more info. 
 * w: `http://animista.net,`  t: @cssanimista 
 * ---------------------------------------------- */ 

/** 
 * ---------------------------------------- 
 * animation focus-in-expand 
 * ---------------------------------------- 
 */ 
@keyframes focus-in-expand { 
  0% { 
    letter-spacing: -0.5em; 
    filter: blur(12px); 
    opacity: 0; 
  } 
  100% { 
    filter: blur(0px); 
    opacity: 1; 
  } 
}

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

/* 只改变透明度的入场动画 - 专为作品卡片设计 */
@keyframes fade-in-only {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* 描述文本 - 精确尺寸 */
.hero-description {
    width: var(--text-width);
    max-width: 100%;
    color: var(--base-grey-300);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-s);
    line-height: var(--line-height-extra-loose);
    text-align: center;
    /* 延迟动画 */
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.8s both;
}

/* CTA 按钮 - 外层容器 + 内层按钮嵌套结构 */
.cta-buttons {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    justify-content: center;
    flex-wrap: wrap;
    /* 延迟动画 */
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.1s both;
}

/* 外层容器 - 渐变边框 */
.btn-primary {
    display: inline-block;
    padding: 1px; /* 边框厚度 */
    border-radius: calc(var(--radius-md) + 1px);
    background: linear-gradient(168deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.1) 30%,
        rgba(255, 255, 255, 0) 50%, 
        rgba(255, 255, 255, 0.15) 70%,
        rgba(255, 255, 255, 0.4) 100%),
        radial-gradient(74.79% 97.55% at 52.98% 141.86%, #ff5de48d 0%, rgba(255, 255, 255, 0.00) 75.7%), 
                radial-gradient(123.96% 130.43% at 195.75% 83.25%, #19FFFA 0%, rgba(25, 255, 250, 0.26) 60.37%, rgba(25, 255, 250, 0.00) 100%), 
                radial-gradient(113.59% 259.56% at 50% 321.15%, #19FFFA 0%, rgba(25, 255, 250, 0.00) 100%), 
                var(--primary-500, #5024FF);
        
    cursor: pointer;
    /* opacity: 0.5; */
    transition: all var(--transition-bounce);
       color: #FFF;
    mix-blend-mode: overlay;
    text-decoration: none;
}

/* 内层按钮 - 渐变背景 */
.btn-primary-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-6) var(--spacing-6);
    height: var(--spacing-13);
    border-radius: var(--radius-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    border: none;
    background: radial-gradient(74.79% 97.55% at 52.98% 141.86%, #ff5de48d 0%, rgba(255, 255, 255, 0.00) 75.7%), 
                radial-gradient(123.96% 130.43% at 195.75% 83.25%, #19FFFA 0%, rgba(25, 255, 250, 0.26) 60.37%, rgba(25, 255, 250, 0.00) 100%), 
                radial-gradient(113.59% 259.56% at 50% 321.15%, #19FFFA 0%, rgba(25, 255, 250, 0.00) 100%), 
                var(--primary-500, #5024FF);
    background-blend-mode: normal, plus-lighter, normal, normal;
    color: var(--base-white);
    cursor: pointer;
    transition: all var(--transition-bounce);
    width: 100%;
    box-sizing: border-box;
}

/* 注意：为了实现实际跳转，建议在HTML中将按钮修改为： */
/* <a href="myWork.html" class="btn-primary">
       <button class="btn-primary-inner">查看作品</button>
   </a> */

/* 轮廓按钮样式 - 外层容器 */
.btn-outline {
    display: inline-block;
    /* padding: 1px; 边框厚度 */
    border-radius: calc(var(--radius-md) + 1px);
    border: 1px solid var(--color-border-alt);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-bounce);
    mix-blend-mode: overlay;
    text-decoration: none;
}

/* 轮廓按钮样式 - 内层按钮 */
.btn-outline-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-6) var(--spacing-6);
    height: var(--spacing-13);
    border-radius: var(--radius-md);
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-relaxed);
    text-align: center;
    border: none;
    background: transparent;
    color: var(--base-white);
    cursor: pointer;
    transition: all var(--transition-bounce);
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Hover 效果 */
.btn-primary:hover {
    transform: translateY(-2px);    
    background: linear-gradient(168deg, 
        rgba(255, 255, 255, 0.5) 0%, 
        rgba(255, 255, 255, 0.5) 30%,
        rgba(255, 255, 255, 0) 50%, 
        rgba(255, 255, 255, 0.5) 70%,
        rgba(255, 255, 255, 0.5) 100%),
        radial-gradient(74.79% 97.55% at 52.98% 141.86%, #ff5de48d 0%, rgba(255, 255, 255, 0.00) 75.7%), 
                radial-gradient(123.96% 130.43% at 195.75% 83.25%, #19FFFA 0%, rgba(25, 255, 250, 0.26) 60.37%, rgba(25, 255, 250, 0.00) 100%), 
                radial-gradient(113.59% 259.56% at 50% 321.15%, #19FFFA 0%, rgba(25, 255, 250, 0.00) 100%), 
                var(--primary-500, #5024FF);
    box-shadow: 0px 4px 12px 0px rgba(80, 36, 255, 0.4), 0px 8px 20px 0px rgba(255, 255, 255, 0.2);

}

.btn-primary:hover .btn-primary-inner {
    box-shadow: 0px 2px 12px 0px rgba(255, 255, 255, 0.6) inset;
}



.btn-outline:hover {
    border-color: rgba(247, 237, 255, 0.683);
    /* background: rgba(255, 255, 255, 0.05); */
    transform: translateY(-2px);
    box-shadow: 0px 4px 12px 0px rgba(80, 36, 255, 0.4), 0px 8px 20px 0px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover .btn-outline-inner {
    background: radial-gradient(74.79% 97.55% at 52.98% 141.86%, #c7b4ff8f 0%, rgba(255, 255, 255, 0.00) 75.7%), radial-gradient(123.96% 130.43% at 195.75% 83.25%, #ccbbff 0%, rgba(82, 25, 255, 0.26) 60.37%, rgba(82, 25, 255, 0.00) 100%), radial-gradient(113.59% 259.56% at 50% 321.15%, #5219FF 0%, rgba(82, 25, 255, 0.00) 100%);
    background-blend-mode: normal, plus-lighter, normal;
        box-shadow: 0px 2px 12px 0px rgba(255, 255, 255, 0.423) inset;
    /* background: rgba(255, 255, 255, 0.05); */
}

/* 作品展示区域 */
.works-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 37.13px;
    width: 100%;
    max-width: 1074px;
    /* 延迟动画 */
    animation: fade-in-up 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.4s forwards;
    opacity: 0; /* 确保初始状态隐藏 */
}

.work-card {
    position: relative;
    border-radius: var(--radius-base);
    overflow: hidden;
    transform: translateY(0px);
    transition: all var(--transition-normal);
    cursor: pointer;
    opacity: 0; /* 确保初始状态隐藏 */
}

/* 作品卡片链接样式 */
.work-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 作品卡片阶梯式延迟动画 - 使用只改变透明度的动画避免与悬停效果冲突 */
.works-section .work-card:nth-child(1) {
    animation: fade-in-only 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.6s forwards;
}

.works-section .work-card:nth-child(2) {
    animation: fade-in-only 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1.8s forwards;
}

.works-section .work-card:nth-child(3) {
    animation: fade-in-only 0.8s cubic-bezier(0.250, 0.460, 0.450, 0.940) 2.0s forwards;
}

/* 作品卡片样式 */
.work-card.work-card-large {
    width: 400px;
    height: 100%;
    padding: 1px;
    background: linear-gradient(225deg, rgba(112, 125, 208, 1) 0%, rgba(51, 60, 124, 1) 10%, rgba(51, 60, 124, 1) 90%, rgba(112, 125, 208, 1) 100%);
    border-radius: 12px;
      /* 内容居中 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.work-card.work-card-small {
    width: calc(400px * 0.75);
    height: calc(100% * 0.75);
    padding: calc(1px * 0.75);
    background: linear-gradient(225deg, rgba(112, 125, 208, 1) 0%, rgba(51, 60, 124, 1) 10%, rgba(51, 60, 124, 1) 90%, rgba(112, 125, 208, 1) 100%);
    border-radius: calc(12px * 0.75);
}
.work-card-small .work-image {
    border-radius: 8.25px;
}

.work-card-large .work-image {
    border-radius: 11px;
}

.work-image {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #000;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

/* 悬停放大动画 */
.work-image:hover img {
    transform: scale(1.03);
}

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}


.work-card:hover .work-overlay {
    opacity: 0.8;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* 作品卡片标题样式 */
.work-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0px 30px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 2;
    color: #FFFFFF;

}
/* Large卡片特定标题样式 */
.work-card.work-card-large .work-title {
    padding: 0px 30px 30px;
    gap: 10px;
}

.work-card.work-card-large .work-title span {
    font-size: 20px;
    font-weight: 500;
    line-height: 140%; /* 20.965px */
}

.work-card.work-card-large .arrow-icon {
    width: 28px;
    height: 28px;
}

/* Small卡片特定标题样式 */
.work-card.work-card-small .work-title {
    padding: 0px 22.5px 22.5px;
    gap: 6px;
}

.work-card.work-card-small .work-title span {
    font-size: 16px;
    font-weight: 500;
    line-height: 140%; /* 20.965px */
}

.work-card.work-card-small .arrow-icon {
    width: 21px;
    height: 21px;
}

.work-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 20px 40px rgba(80, 36, 255, 0.3), 0px 8px 16px rgba(0, 0, 0, 0.2);
}


.work-card:hover .work-title {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.1s;
}

.arrow-icon {
    
    transform: translateX(-8px);
}




/* 首页特有响应式设计 */
/* @media (max-width: 1440px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .hero-description {
        width: 100%;
        max-width: 600px;
        font-size: var(--font-size-base);
    }
    
    .works-section {
        flex-direction: column;
        gap: var(--spacing-5);
    }
    
    .work-card-large,
    .work-card-small {
        width: 350px;
        height: 250px;
    }
} */

@media (max-width: 768px) {
    /* 防止移动端横向滚动 */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    .hero-content {
        margin-top: 88px;
                padding: 20px;
    }

    /* .hero {
        padding: 20px;
    }
     */
    
    .hero-title {
        font-size: var(--font-size-4xl);
    }
    
    .hero-description {
        font-size: var(--font-size-sm);
        letter-spacing: -0.56px;
        line-height: 180%;
        padding: 0;
    }
    
    .badges {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-4);
    }
    
    .btn-primary,
    .btn-outline {
        width: 100%;
        /* max-width: 300px; */
    }

    /* 768px下：按钮默认展示悬停态视觉 */
    .btn-primary {
        /* transform: translateY(-2px); */
        background: linear-gradient(168deg, 
            rgba(255, 255, 255, 0.5) 0%, 
            rgba(255, 255, 255, 0.5) 30%,
            rgba(255, 255, 255, 0) 50%, 
            rgba(255, 255, 255, 0.5) 70%,
            rgba(255, 255, 255, 0.5) 100%),
            radial-gradient(74.79% 97.55% at 52.98% 141.86%, #ff5de48d 0%, rgba(255, 255, 255, 0.00) 75.7%), 
            radial-gradient(123.96% 130.43% at 195.75% 83.25%, #19FFFA 0%, rgba(25, 255, 250, 0.26) 60.37%, rgba(25, 255, 250, 0.00) 100%), 
            radial-gradient(113.59% 259.56% at 50% 321.15%, #19FFFA 0%, rgba(25, 255, 250, 0.00) 100%), 
            var(--primary-500, #5024FF);
        box-shadow: 0px 4px 12px 0px rgba(80, 36, 255, 0.4), 0px 8px 20px 0px rgba(255, 255, 255, 0.2);
    }

    .btn-primary .btn-primary-inner {
        box-shadow: 0px 2px 12px 0px rgba(255, 255, 255, 0.6) inset;
    }

    .btn-outline {
        border-color: rgba(247, 237, 255, 0.683);
        /* transform: translateY(-2px); */
        box-shadow: 0px 4px 12px 0px rgba(80, 36, 255, 0.4), 0px 8px 20px 0px rgba(255, 255, 255, 0.2);
    }

    .btn-outline .btn-outline-inner {
        background: radial-gradient(74.79% 97.55% at 52.98% 141.86%, #c7b4ff8f 0%, rgba(255, 255, 255, 0.00) 75.7%), radial-gradient(123.96% 130.43% at 195.75% 83.25%, #ccbbff 0%, rgba(82, 25, 255, 0.26) 60.37%, rgba(82, 25, 255, 0.00) 100%), radial-gradient(113.59% 259.56% at 50% 321.15%, #5219FF 0%, rgba(82, 25, 255, 0.00) 100%);
        background-blend-mode: normal, plus-lighter, normal;
        box-shadow: 0px 2px 12px 0px rgba(255, 255, 255, 0.423) inset;
    }

    /* 768px下：作品卡片默认展示悬停态视觉 */
    .work-image img {
        transform: scale(1.03);
    }

    .work-card .work-overlay {
        opacity: 0.8;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    }

    .work-card .work-title {
        opacity: 1;
        transform: translateY(0);
    }

    .work-card .arrow-icon {
        opacity: 1;
        transform: translateX(0);
        transition-delay: 0.1s;
    }
    
    /* 禁用hover效果 */
    .btn-primary:hover,
    .btn-primary:hover .btn-primary-inner,
    .btn-outline:hover,
    .btn-outline:hover .btn-outline-inner {
        /* 保持与默认状态相同的样式，不添加额外效果 */
    }
    
.work-card.work-card-small {
        width: 100%;
        height: auto;
    }

.work-card.work-card-large {
        width: 100%;
        height: auto;
    }

    /* Large卡片特定标题样式 */
.work-card.work-card-large .work-title {
    padding: 0px 22.5px 22.5px;
    gap: 6px;
}

.work-card.work-card-large .work-title span {
    font-size: 16px;
    font-weight: 500;
    line-height: 140%; /* 20.965px */
}

.work-card.work-card-large .arrow-icon {
    width: 21px;
    height: 21px;
}

/* 
    .work-card-large,
    .work-card-small {
        width: 100%;
        height: auto;
    } */

     .works-section {
        flex-direction: column;
        gap: var(--spacing-8);
    }

.badge-middle {
display: flex;
padding: 6.316px 12.632px;
justify-content: center;
align-items: center;
gap: 9.474px;
}

.badge-inner {
text-align: center;
font-family: "PingFang SC";
font-size: 11.053px;
font-style: normal;
font-weight: 400;
line-height: 155%; /* 17.132px */
}

}