/* works.css — 作品集页（/works）
   来自原 about.css */

/* 移动端 / 桌面端只显示一个，断点与 works.js 的 680px 一致 */
.works-mobile { display: block; }
.works-desktop { display: none; }
@media screen and (min-width: 680px) {
    .works-mobile { display: none; }
    .works-desktop { display: block; }
}

/* DOM 顺序是「个人信息 → 作品集」，桌面端直接用这个顺序；
   移动端把「个人信息」排到最后，让作品集在最前 */
.works-layout {
    display: flex;
    flex-direction: column;
}
.works-layout > .content-container {
    width: 100%;
}
@media screen and (max-width: 679px) {
    .works-layout > .personal-info {
        order: 1;
    }
}
@media screen and (min-width: 680px) {
    /* 桌面端「关于我 / 联系」在页面最上方，去掉它的顶部外边距 */
    .works-layout > .personal-info {
        margin-top: 0;
    }
}

.content-container {
    margin: 0px auto;
}
        
/* 桌面端内容样式 */
.desktop-content {
    /* background-color: #e3f2fd;
    border: 1px solid #bbdefb;
    padding: 20px; */
    border-radius: 12px;
    overflow: hidden;
}

#myCarousel {
    --f-arrow-pos: 10px;
    --f-arrow-bg: rgba(255,255,255,0.60);
    --f-arrow-hover-bg: rgba(255,255,255,1);
    --f-arrow-shadow: 0 4px 12px -2px rgb(50 50 93 / 15%);
    --f-arrow-color: #333;
    --f-arrow-width: 40px;
    --f-arrow-height: 40px;
    --f-arrow-svg-width: 20px;
    --f-arrow-svg-height: 20px;
    --f-arrow-svg-stroke-width: 2px;
    --f-arrow-border-radius: 50%;
     --f-thumb-opacity: "0.5";
    --f-thumb-hover-opacity: "1";
    --f-thumb-selected-opacity: "1";
    /* --f-carousel-slide-height: 600px, */
    /* height: 600px; */
}

#myCarousel .f-carousel__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

#myCarousel img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
}


/* 移动端内容样式 */
.mobile-content {
    /* background-color: #f9fafc; */
    /* border: 1px solid #ffe0b2; */
    /* padding: 12px; */
    border-radius: 12px;
}
/* 移动端封面卡（点击后进入全屏翻阅） */
.works-cover {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    line-height: 0;
}
.works-cover img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease-in-out;
}
.works-cover:active img {
    transform: scale(0.995);
}
.works-cover-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 28px 12px 8px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--text-tertiary);
    text-align: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}


/* 页面标题区、下载按钮样式  */
.title-area{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.main-title{
    font-size: 24px;
    font-weight: 600;
    color: #11181c;
}
.pdf-download {
    width: 33.3%;
    min-width: 120px;
    display: flex;
    justify-content: center;
    padding: 6px 0px;
    background-color: #262626;
    color: rgba(255, 255, 255, 0.88);
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.pdf-download:hover{
    background-color: #020202;
    color: white;
    cursor: pointer;
}
.main-title a:hover {
    color: white;
}

/* 个人信息样式 */
.personal-info {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    margin-bottom: 24px;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    gap: 6px;
    margin-top: 24px;
}
.wraper {
    padding: 16px;
    background: #f9fafc;
    border-radius: 12px;
}
.span-title {
    font-weight: 600;
    font-size: 24px;
    color: #11181c;
    display: inline-block;
    padding: 12px 0px;
}
.span-desc {
    display: block;
    color: #444;
    padding: 0 12px;
}
.span-desc li {
    margin-bottom: 8px;
}
.span-contact .min-title {
    display: inline-block;
    font-weight: 600;
    margin-right: 0px;
}
.--column-1 {
    flex: 1.6;
}
    
.--column-2 {
    flex: 1;
}
.span-contact .contact-item {
    margin-bottom: 8px;
}

 @media screen and (max-width:600px) {
  .title-area {
    flex-direction: column;
    align-items: flex-start;
  }
  .title-area .main-title {
    display: block;
  }
  .title-area .pdf-download {
    width: 100%;
    margin-top: 12px;
    padding: 8px 0px;
  }
}
@media screen and (max-width:828px) {
    .personal-info {
        flex-direction: column;
    }
}

/* fancybox的thumb样式 */
.f-thumbs {
  --f-thumb-selected-shadow: none;
  --f-thumbs-gap: 2px;
  --f-thumb-transform: scale(0.86);
  --f-thumb-hover-transform: scale(0.86);
  --f-thumb-selected-transform: scale(1);
}