.header1 {
    text-align: center;
    margin-top: 58px;
    color: #2c3e50;
}

:root {
    --primary: #F7931E;
    /* 主色调 */
    --bg: #f8f9fa;
    /* 基础背景 */
}

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

body {
    background: var(--bg);
    overflow-x: hidden;
}

/* 章节通用样式 */
.ai-section {
    min-height: 100vh;
    padding: 120px 10% 50px;
    position: relative;
    overflow: hidden;
}

/* 高级背景系统 */
.ai-section::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 400px;
    height: 400px;
    transform: translateY(-50%);
    z-index: 0;
    opacity: 0.08;
    background-repeat: no-repeat;
    background-size: contain;
    mix-blend-mode: multiply;
}

.ai-section::before {
    transition: all 0.8s ease;
}

.ai-section:hover::before {
    transform: translateY(-50%) scale(1.05);
    opacity: 0.12;
}

/* AI基础 */
/* .ai-base::before {
    right: -7%;
    background-image:
        linear-gradient(135deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%),
        linear-gradient(-135deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%);
    background-position: right center;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
} */

/* 第一阶段 */
.stage1::before {
    left: -7%;
    background-image:
        linear-gradient(45deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%),
        linear-gradient(-45deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%);
    background-position: left center;
    clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

/* 第二阶段 - 几何网格 */
.stage1 {
    background-color: #fefefe;
}

/* .stage2,.ai-base{background-color: #fefefe;} */
.stage2::before {
    right: -7%;
    background-image:
        linear-gradient(135deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%),
        linear-gradient(-135deg,
            transparent 49%,
            var(--primary) 50%,
            transparent 51%);
    background-position: right center;
    clip-path: polygon(100% 50%, 0 0, 0 100%);
}

/* 内容容器 */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    gap: 60px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.content-wrapper .img-column {
    display: flex;
    flex-direction: row;
    gap: 50px;
    height: 450px;
}

.content-wrapper .img-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

/* 图片样式 */
.ai-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 20px 20px rgb(0 0 0 / 18%);
    position: relative;
    background: white;
    flex: 1;
    /* padding: 0 20px; */
}
.ai-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 20px 20px rgb(0 0 0 / 30%);
}

.ai-image img {
    width: 100%;
    height: 600px;
    object-fit: contain;
}

/* 优化文字样式 */
.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h2 {
    font-size: 46px;
    line-height: 1.1;
    margin: 0 0 30px;
    position: relative;
    padding: 0 0 20px;
    display: inline-block;
    background-image: linear-gradient(90deg, #2D2D2D 0%, var(--primary) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

h2::before {
    /* content: "✦";
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--primary);
    font-size: 0.8em;
    animation: starPulse 2s ease infinite; */
    content: attr(data-chapter);
    position: absolute;
    left: -85px;
    top: 0.2em;
    font-size: 32px;
    color: var(--primary);
    font-weight: 700;
    opacity: 0.8;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), rgba(247, 147, 30, 0.3));
    opacity: 0.6;
}

.ai-base h2 {
    background-image: linear-gradient(90deg,
            #2D2D2D 0%,
            var(--primary) 70%);
}

/* .ai-base h2::after {
    width: 120px;
    background: linear-gradient(90deg, var(--primary), rgba(247, 147, 30, 0.3));
} */

.stage1 h2 {
    background-image: linear-gradient(270deg,
            var(--primary) 0%,
            #6B6B6B 80%);
}

/* .stage1 h2::after {
    height: 3px;
    width: 100px;
    background: repeating-linear-gradient(90deg,
            var(--primary),
            var(--primary) 10px,
            transparent 10px,
            transparent 20px);
} */

.stage2 h2 {
    background-image: linear-gradient(45deg,
            var(--primary) 20%,
            #2D2D2D 80%);
}

/* .stage2 h2::after {
    width: 80px;
    height: 4px;
    background:
        linear-gradient(90deg,
            transparent 0%,
            var(--primary) 50%,
            transparent 100%);
    animation: lineFlow 2s infinite;
} */

.age-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 35px;
    border-radius: 40px;
    margin: 25px 0;
    font-weight: 600;
    /* border: 2px solid rgba(247, 147, 30, 0.2); */
    transform: translateX(-20px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.content-wrapper.active .age-tag {
    transform: translateX(0);
    opacity: 1;
}

p {
    font-size: 22px;
    color: #4d4d4d;
    line-height: 1.8;
    margin: 20px 0;
    padding-left: 40px;
    position: relative;
}

p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 12px;
    height: 12px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    transform: rotate(90deg);
}

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

@keyframes lineFlow {
    0% {
        background-position: -100% 0;
    }

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

/* 动画系统 */
@keyframes particleMove {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes starPulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 页脚 */
footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 10%;
    text-align: center;
}

footer p {
    font-size: 18px;
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ai-image img {
        height: 400px;
    }

    h2 {
        font-size: 40px;
        background-image: linear-gradient(90deg,
                #2D2D2D 0%,
                var(--primary) 90%);
    }

    h2::before {
        left: -60px;
        font-size: 28px;
    }

    h2::after {
        width: 60px !important;
    }

    p {
        font-size: 19px;
        padding-left: 30px;
    }

    p::before {
        width: 10px;
        height: 10px;
        top: 0.4em;
    }

    .ai-section {
        padding: 80px 5%;
    }

    .content {
        padding: 20px;
        transform: scale(0.9);
        /* 小屏幕适当缩小内容 */
    }

    .content h1 {
        font-size: 1.8em;
    }

    .content p {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .content {
        transform: scale(0.8);
        max-width: 95%;
    }
}

@media (max-width: 2240px) {
    .ai-section {
        min-height: 100vh;
    }
}

@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 {
    width: 100%;
    height: 700px;
    background: url('/img/poster6.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

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

.banner h1 {
    font-size: calc(24px + 2vw);
    color: #FFA500;
    margin: 0 0 1vw 0;
    white-space: nowrap;
}

.banner p {
    font-size: calc(12px + 1vw);
    margin: 1vw 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    /* 文字过长时显示省略号 */
}

/* 文字入场动画 */
.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;
}

.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-1 {
    animation: itemSlide 0.6s 1.2s forwards;
}

.animate-item-2 {
    animation: itemSlide 0.6s 1.4s forwards;
}

.animate-item-3 {
    animation: itemSlide 0.6s 1.6s 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(0);
    }
}

@keyframes flicker {

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

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

@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);
    }
}