/* 作品展示部分样式 */
.works-section {
    padding: 60px 0;
    position: relative;
    /* background-color: rgb(255, 250, 246); */
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    /* margin-top: 10vh; 确保在主页背景之后 */
}

.works-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 1100px;
    height: 600px; /* 固定高度 */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    z-index: -1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.works-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.works-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.works-container {
    display: flex;
    /* gap: 30px; */
    transition: transform 0.5s ease;
    padding: 20px 0;
    width: max-content;
    position: relative;
    justify-content: center;
}

.work-card {
    flex: 0 0 350px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s ease;
    transform: scale(0.85);
    opacity: 0.5;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    background-image: linear-gradient(163deg, #ffee00 0%, #ff7300 100%);
}

.work-card .card2 {
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom, 
        rgba(255, 255, 255, 1), 
        rgba(255, 237, 218, 1)
    );
    border-radius: 18px;
    transition: all 0.2s;
    overflow: hidden;
}

.work-card:hover {
    box-shadow: 0px 0px 30px 1px rgba(255, 238, 0, 0.30);
}

.work-card:hover .card2 {
    transform: scale(0.98);
    border-radius: 18px;
}

.work-card.active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

.work-image {
    height: 200px;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.2);
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-info {
    padding: 20px;
    color: #000000;
}

.work-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #000000;
}

.work-info p {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.8);
}

.work-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    padding: 5px 12px;
    background: rgb(125, 125, 125);
    border-radius: 15px;
    font-size: 0.9rem;
    color: #ffffff;
}

.work-text{
    color: #000000;
}

/* 深色主题适配 */
/* .dark-theme .works-section {
    background-color: rgb(40, 40, 40);
} */

.dark-theme .section-title {
    color: #ffffff;
}

.dark-theme .work-card {
    background-image: linear-gradient(163deg, #33ff1c 0%, #0040ff 100%);
}

.dark-theme .work-card .card2 {
    background-image: linear-gradient(to bottom, 
        rgb(30, 30, 30), 
        rgb(83, 83, 83)
    );
}

.dark-theme .work-info {
    background: rgba(0, 0, 0, 0.4);
}

.dark-theme .work-info h3 {
    color: #ffffff;
}

.dark-theme .work-info p {
    color: #ffffff;
}

.dark-theme .tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.dark-theme .work-text{
    color: #ffffff;
}

.dark-theme .works-section::before {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.article-background{
    background-image: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        /* rgba(255, 255, 255, 0) 30%, */
        rgba(255, 255, 255, 0.98) 7.5%,  
        rgb(255, 255, 255) 100%
    );
}

.dark-theme .article-background{
    background-image: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0) 0%,
        /* rgba(255, 255, 255, 0) 5%, */
        rgba(30, 30, 30, 0.98) 7.5%,  
        rgb(0, 0, 0) 100%
    );
}

