:root {
    --primary: #FFA500;
    /* 主色调 */
    --secondary: #4A90E2;
    /* 辅助色 */
    --bg-color: #F0F8FF;
    /* 浅蓝背景 */
    --green: #28A745;
    /* 辅助绿 */
    --accent: #FF6B6B;
   /* 创作实验室主题色 */
   --exploration-color: #3498DB;
    /* 探索实验室主题色 */
    --fourth: #4A4A4A;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: '微软雅黑', system-ui;
}

body {
    background: var(--bg-color);
    overflow-x: hidden;
    /* background: linear-gradient(135deg, #F0F8FF 0%, #FFF5EE 100%); */
}

body::before {
    content: '';
    position: absolute;
    width: 100vw;
    height: 100vh;
    /* background:
        radial-gradient(circle at 10% 10%, rgba(255, 107, 107, 0.08) 15%, transparent 30%),
        radial-gradient(circle at 90% 90%, rgba(40, 167, 69, 0.08) 15%, transparent 30%); */
    z-index: 0;
}

.home_bg {
    background: url(/img/bg3.png) no-repeat;
    background-size: cover;
    /* padding-top: 100px; */
    padding-bottom: 208px;
}

.banner {
    width: 100%;
    height: 700px;
    background: url('/img/future.png') no-repeat center center/cover;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;

}

@keyframes glitch {
    2% {
        clip-path: inset(20% 0 30% 0);
    }

    4% {
        clip-path: inset(10% 0 60% 0);
    }

    6% {
        clip-path: inset(40% 0 20% 0);
    }

    8% {
        clip-path: inset(30% 0 10% 0);
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes titleAppear {
    0% {
        letter-spacing: -0.5em;
        filter: blur(12px);
    }

    100% {
        letter-spacing: normal;
        filter: blur(0);
    }
}

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

    100% {
        background-position: 100% 100%;
    }
}

@keyframes particleMove {
    0% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(20px);
    }
}

.banner>.content {
    /* background: rgba(255, 255, 255, 0.9);
    padding: 4vw 6vw;
    border-radius: 10px; */
    white-space: nowrap;
    padding: 50px;
    /* 防止内容换行 */
    /* max-width: 90%;
    overflow: hidden;
    border-left: 5px solid #FFA500; */
}

.banner h1 {
    font-size: calc(40px + 2vw);
    color: #fff;
    margin: 0 0 2vw 0;
    white-space: nowrap;
    -webkit-text-stroke: 1px #e9e9e9;
    /* 描边宽度和颜色 */
    text-stroke: 2px #F7931E;
    /* 标准语法（部分浏览器支持） */
    text-shadow: 4px 5px 7px rgb(0 0 0 / 81%);
    transition: text-shadow 0.3s;
}

.banner h1:hover {
    text-shadow:
        4px 4px 8px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(255, 255, 255, 0.5);
}

.banner p {
    font-size: calc(12px + 1vw);
    margin: 1vw 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    transform: scaleX(0);
    font-weight: 600;
    text-shadow: 4px 5px 7px rgb(0 0 0 / 81%);
}

/* 文字入场动画 */
.animate-slideUp {
    animation: slideUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.gradient-title.animate-title {
    animation: titleAppear 1.2s 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.highlight.animate-highlight {
    animation: scaleIn 0.6s 1s ease-out forwards;
    /* transform-origin: left center; */
}

.feature-item {
    opacity: 0;
    transform: translateX(-50px);
}


.animate-item-5 {
    animation: itemSlide 0.6s 2.0s forwards;
}

/* 装饰文字动画 */
.animate-flicker {
    animation: flicker 2s infinite alternate;
}

.animate-glitch {
    animation: glitch 1s infinite linear alternate;
}

/* 关键帧定义 */
@keyframes scaleIn {
    0% {
        transform: scaleX(0);
    }

    100% {
        transform: scaleX(1);
    }
}

@keyframes itemSlide {
    to {
        opacity: 1;
        /* transform: translateX(-50px); */
    }
}

@keyframes flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        opacity: 0.1;
    }

    20%,
    24%,
    55% {
        opacity: 0.3;
    }
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    padding-bottom: 50px;
}

.content-wrapper.active {
    opacity: 1;
    transform: translateY(0);
}

.main-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary);
    margin: 5rem 0 0 0;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.main-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 1rem auto;
    border-radius: 2px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.stage2 {
    /* background-color: #FFFDFD; */
    /* background: url(/img/home_bg.png) no-repeat;
    background-size: cover;
    background-position-y:  -612px; */
}

.stage1,
.stage3 {
    background-color: #fefefe6e;
    /* background: url(/img/home_bg.png) no-repeat;
    background-size: cover;
    background-position-y: -1079px; */
}

.stage4 {
    background-color: #F1F3F5;
    /* background: url(/img/home_bg.png) no-repeat;
    background-size: cover;
    background-position-y: -1807px; */
}

.container {
    max-width: 1400px;
    margin: 7rem auto;
    padding: 40px;
    position: relative;
    min-height: 90vh;
    width: 100%;
    margin-bottom: 0;
}

/* 动态卡片基础样式 */
.ai-card {
    position: absolute;
    background: white;
    border-radius: 15px;
    padding: 25px;
    width: 47%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    animation: cardEntrance 0.6s ease forwards;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translate(0) scale(1);
    }
}

/* 图标动态系统 */
.card-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

/* 文字排版增强 */
.card-title {
    color: var(--primary);
    font-size: 1.3em;
    margin: 0 0 15px;
    line-height: 1.4;
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.card-text {
    color: #4a4a4a;
    line-height: 1.8;
    font-size: 0.95em;
}

/* 卡片位置设置 */
#card1 {
    top: 0;
    left: 0;
    animation-delay: 0.2s
}

#card2 {
    top: 0;
    right: 0;
    animation-delay: 0.4s
}

#card3 {
    top: 30%;
    left: 25%;
    animation-delay: 0.6s
}

#card4 {
    top: 60%;
    right: 0;
    animation-delay: 0.8s
}

#card5 {
    top: 60%;
    left: 0;
    animation-delay: 1s
}

/* 悬停动态效果 */
.ai-card:hover {
    transform: translateY(-10px) rotate(2deg) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 165, 0, 0.2);
    z-index: 2;
}

.ai-card:hover .card-icon {
    transform: rotate(-8deg) scale(1.1);
}

.ai-card:hover .card-title::after {
    width: 80px;
}


/* stage2 */

/* 流程容器 */
.process-flow {
    max-width: 1400px;
    margin: 35px auto;
    display: flex;
    flex-direction: column;
    gap: 60px;
    position: relative;
    background: linear-gradient(15deg, #fff5e6bd 0%, #ffffffb0 100%);
    padding: 3rem 5%;
    margin-bottom: 0;
}

/* 阶段卡片 */
.phase-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 80%;
    position: relative;
    transition: transform 0.3s ease;
    opacity: 0;
    animation: cardEntrance 0.6s ease forwards;
    backdrop-filter: blur(10px);
    background: linear-gradient(90deg, 
    var(--color1, var(--primary)),
    var(--color2, var(--secondary)));
}

/* 流程连接线 */
.phase-card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.phase-card:last-child::after {
    display: none;
}

/* 流程箭头 */
.phase-card::before {
    content: '➔';
    position: absolute;
    right: -120px;
    top: 49%;
    transform: translateY(-50%);
    font-size: 2em;
    color: var(--secondary);
    animation: arrowPulse 1.5s infinite;
   
}

.phase-card:last-child::before {
    display: none;
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes arrowPulse {

    0%,
    100% {
        opacity: 0.6;
        transform: translateY(-50%) translateX(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(5px);
    }
}

/* 交替布局 */
.phase-card:nth-child(even) {
    align-self: flex-end;
}

.phase-card:nth-child(even)::after {
    left: -80px;
    right: auto;
}

.phase-card:nth-child(even)::before {
    left: -130px;
    right: auto;
    content: '←';
    top: 50%;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.25);
}

/* 标题样式 */
.phase-title {
    color: var(--secondary);
    font-size: 1.4em;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--green);
}

/* 步骤列表 */
.phase-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.phase-steps li {
    padding: 8px 0;
    color: #495057;
    line-height: 1.6;
    position: relative;
    padding-left: 25px;
    break-inside: avoid;
}

.phase-steps li::before {
    content: '▹';
    color: var(--green);
    position: absolute;
    left: 0;
    font-size: 1.2em;
}

.phase-card:nth-child(1) {
    --color1: #ff6b6b21;
    --color2: #ffa5009e;
}

.phase-card:nth-child(2) {
    --color1: #4a90e24f;
    --color2: #6c5ce745;
}

.phase-card:nth-child(3) {
    --color1: #28a74540;
    --color2: #2e86c191;
}

.phase-card:nth-child(4) {
    --color1: #ffa5004a;
    --color2: #ff6b6b4d;
}

.phase-card:nth-child(5) {
    --color1: #6c5ce729;
    --color2: #4a90e280;
}
.phase-card:nth-child(6) {
    --color1: #ff6b6b21;
    --color2: #ffa5009e;
}

@media (max-width: 768px) {
    .container {
        padding: 20px
    }

    .ai-card {
        position: static !important;
        width: 100%;
        margin: 20px 0;
        animation: none;
        opacity: 1;
    }

    .process-container {
        min-height: auto;
        padding: 100px 20px;
    }

    .phase-card {
        position: static !important;
        width: 100%;
        margin: 20px 0;
        animation: none;
        opacity: 1;
    }

    .process-flow {
        gap: 40px;
    }

    .phase-card {
        width: 100%;
        margin: 0 !important;
    }

    .phase-card::after,
    .phase-card::before {
        display: none;
    }

    .phase-steps {
        columns: 1;
    }
}
/*stage4*/

.stage4 .lab-container {
    margin: 40px auto;
    width: 100%;
    padding: 20px;
}

/* 实验室标题 */
.stage4 .lab-title {
    margin-bottom: 30px;
    padding-left: 50px;
    position: relative;
}

.stage4 .lab-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 65px;
    background-size: contain;
}

.stage4 .creation .lab-title::before {
    background: url('data:image/svg+xml;utf8,<svg .../>') var(--creation-color);
    /* 替换为实际图标 */
}

.stage4 .exploration .lab-title::before {
    background: url('data:image/svg+xml;utf8,<svg .../>') var(--exploration-color);
}

/* 时间轴容器 */
.stage4 .timeline {
    display: flex;
    padding: 40px 0;
    position: relative;
}


/* 阶段卡片 */
.stage4 .stage {
    flex: 1;
    min-width: 280px;
    margin: 0 30px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.stage4 .stage::after {
    content: '\f061';
    /* FontAwesome箭头图标 */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    /* color: #E74C3C; */
    font-size: 24px;
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
}

.stage4 .stage:last-child::after {
    display: none;
}

.stage4 .stage:hover {
    transform: translateY(-10px);
}

/* 阶段编号 */
.stage4 .stage-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    position: absolute;
    left: 50%;
    top: -30px;
    transform: translateX(-50%);
}

.stage4 .creation .stage-number {
    background: var(--creation-color);
    color: white;
}

.stage4 .exploration .stage-number {
    background: var(--exploration-color);
    color: white;
}

.creation-stage {
    border-top: 4px solid var(--creation-color);
}

.exploration-stage {
    border-top: 4px solid var(--exploration-color);
}

.creation-stage::after {
    color: var(--creation-color);
}

.exploration-stage::after {
    color: var(--exploration-color);
}

/* 课程内容 */
.stage4 .stage-content {
    margin-top: 40px;
}

.stage4 .stage h3 {
    color: #2C3E50;
    margin-bottom: 15px;
    min-height: 60px;
}

.stage4 .stage p {
    color: #666;
    line-height: 1.8;
    margin: 10px 0;
}

/* 双实验室区分 */
.stage4 .creation .stage {
    border-top: 4px solid var(--creation-color);
}

.stage4 .exploration .stage {
    border-top: 4px solid var(--exploration-color);
}


@media screen and (max-width: 1800px) {
    .container{
        min-height: 80vh;
    }
    #card3 {
        top: 32%;
        left: 25%;
        animation-delay: 0.6s
    }
    
    #card4 {
        top: 65%;
        right: 0;
        animation-delay: 0.8s
    }
    
    #card5 {
        top: 65%;
        left: 0;
        animation-delay: 1s
    }
}