.header {
    width: 100%;
    min-width: 1480px;
    top: 0;
    left: 0;
    background-image: url("../img/img2.jpeg");
    background-size: cover;
    height: 800px;
}
.slider {
    width: 100%;
    height: 600px;
    position: relative;
}

.card {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 70%;
    height: 490px;
    aspect-ratio: 10 / 18;
    border-radius: 2rem;
    box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.25),
    0 15px 20px 0 rgba(0, 0, 0, 0.125);
    transition: transform 0.6s;
    user-select: none;
    cursor: pointer;
}

.card img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.card:nth-last-child(n + 5) {
    --x: calc(-50% + 90px);
    transform: translate(var(--x), -50%) scale(0.85);
    box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.01);
}

.card:nth-last-child(4) {
    --x: calc(-50% + 60px);
    transform: translate(var(--x), -50%) scale(0.9);
}

.card:nth-last-child(3) {
    --x: calc(-50% + 30px);
    transform: translate(var(--x), -50%) scale(0.95);
}

.card:nth-last-child(2) {
    --x: calc(-50%);
    transform: translate(var(--x), -50%) scale(1);
}

.card:nth-last-child(1) {
    --x: calc(-50% - 30px);
    transform: translate(var(--x), -50%) scale(1.05);
}

.card:nth-last-child(1) img {
    box-shadow: 0 1px 5px 5px rgba(255, 193, 111, 0.5);
}

.swap {
    animation: swap 1.3s ease-out forwards;
}

@keyframes swap {
    30% {
        transform: translate(calc(var(--x) - 250px), -50%) scale(0.85) rotate(-5deg) rotateY(65deg);
    }
    100% {
        transform: translate(calc(var(--x) - 30px), -50%) scale(0.5);
        z-index: -1;
    }
}

.easy-intro {
    display: flex;
    width: 100%;
    padding: 40px;
}

.easy-intro-content-left {
    width: 50%;
}

.easy-intro-content-left img {
    width: 100%;
    border-radius: 30px;
}

.easy-intro-content-right {
    width: 50%;
    padding: 20px;
}

.easy-intro-content-right h3 {
    font-size: 26px;
    font-weight: 400;
    color: #5b3c41;
    text-align: center;
}

.easy-intro-content-right p {
    margin-top: 20px;
    line-height: 24px;
    font-size: 18px;
    text-indent: 2em;
    font-weight: 280;
}

.works {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 允许换行 */
    flex-wrap: wrap;
    margin-top: 30px;
}

.works-card {
    position: relative;
    width: 240px;
    height: 350px;
    margin: 10px;
    display: flex;
    align-items: flex-end;
    text-align: center;
    color: #f5f5f5;
    /* 阴影 */
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
    0 2px 2px rgba(0, 0, 0, 0.1),
    0 4px 4px rgba(0, 0, 0, 0.1),
    0 8px 8px rgba(0, 0, 0, 0.1),
    0 16px 16px rgba(0, 0, 0, 0.1);
    /* 溢出隐藏 */
    overflow: hidden;
    border-radius: 10px;
}

.works-card::before {
    content: "";
    width: 100%;
    height: 110%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: 0 0;
    /* 过渡效果: css属性名 时长 贝塞尔曲线 */
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 分别设置图片 */
.works-card:nth-child(1)::before {
    background-image: url("../img/img.png");
}

.works-card:nth-child(2)::before {
    background-image: url("../img/img_1.png");
}

.works-card:nth-child(3)::before {
    background-image: url("../img/img_2.png");
}

.works-card:nth-child(4)::before {
    background-image: url("../img/img_3.png");
}

/* 遮罩 */
.works-card::after {
    content: "";
    display: block;
    width: 100%;
    height: 200%;
    background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.25) 55%,
    rgba(0, 0, 0, 0.8) 100%);
    /* 绝对定位 */
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(0);
    /* 过渡效果 */
    transition: transform 1.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 16px 8px;
    transform: translateY(76%);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card h2 {
    font-size: 23px;
    font-weight: bold;
}

.works-card p {
    font-size: 15px;
    /* 字间距 */
    letter-spacing: 2px;
    width: 80%;
    line-height: 30px;
    margin-top: 25px;
    /* 文本两端对齐 */
    text-align: justify;
}

.works-card button {
    cursor: pointer;
    border: none;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 12px 24px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 25px;
}

.works-card button:hover {
    background-color: #000;
}

.works-card .content *:not(h2) {
    /* .content下，除了h2，其他元素隐藏并下移20px */
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.works-card:hover {
    align-items: center;
}

.works-card:hover::before {
    transform: translateY(-5%);
}

.works-card:hover::after {
    transform: translateY(-50%);
}

.works-card:hover .content {
    transform: translateY(0);
}

.works-card:hover .content *:not(h2) {
    opacity: 1;
    transform: translateY(0);
    /* 过渡效果延迟 */
    transition-delay: 0.1s;
}

.opus {
    width: 1200px;
    margin: 20px auto;
    display: flex;
}

.opus-left {
    width: 50%;
    padding: 15px;
}

.opus-right {
    width: 50%;
    padding: 15px;
}

.opus h3 {
    text-align: center;
    text-decoration-line: underline;
    text-decoration-color: #f18484;
    margin-bottom: 20px;
}

.news {
    display: flex;
    width: 100%;
    border-top: #f18484 0.4px solid;
}

.news-left {
    width: 40%;
    padding: 10px;
}

.news-left img {
    width: 100%;
    height: 100px;
    border-radius: 16px;
}

.news-right {
    width: 60%;
    padding: 10px;
}

.news-right h4 {
    font-size: 16px;
    font-weight: 340;
}

.news-right h5 {
    font-size: 14px;
    font-weight: 200;
}
.pics{
    display: flex;
    justify-content: space-around;
    margin: 20px auto;
    width: 1200px;
}
.pics-col{
    width: 23.4%;
    padding-top: 4px;
}
.pics-col img{
    width: 100%;
    border-radius: 14px;
    margin-top: 6px;
}

