/*團隊頁面*/
/*助教群*/
.avatar-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
}

.avatar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    width: 100px;
    margin: 1rem !important;
}

.avatar-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #212529;
}

.avatar-wrapper {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 10px;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(213, 110, 122, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.avatar-wrapper:hover .avatar-hover {
    opacity: 1;
    cursor: pointer;
}

/* 切換按鈕樣式 */
.kk-toggle-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin: 0px 0 20px 0;
    cursor: pointer;
    flex-direction: column;
}

.kk-toggle-icon {
    width: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

/* 主要內容容器 */
.kk-profile-main-content,
.kk-admin-main-content {
    background-color: white;
    box-shadow: 1px 1px 8px #d4d4d4;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 1rem;
}

/* 使用者頭像樣式 */
.kk-person-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* 頭像上傳區塊 */
.kk-avatar-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-right: 20px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.kk-avatar-container .kk-person-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.kk-avatar-container:hover .kk-person-avatar {
    transform: scale(1.05);
}

.kk-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(213, 110, 122, 0.7);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.kk-avatar-container:hover .kk-avatar-overlay {
    opacity: 1;
}

.kk-avatar-overlay i {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

/* 上傳提示文字 */
.kk-upload-hint {
    color: white;
    font-size: 0.75rem;
    text-align: center;
    padding: 0 5px;
    font-weight: 500;
    display: none;
}

.kk-profile-layout {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    align-items: center;
}

.kk-avatar-section {
    width: 30%;
    padding-right: 20px;
    text-align: center;
}

.kk-info-section {
    width: 70%;
}

@media (max-width: 768px) {
    .kk-profile-layout {
        flex-direction: column; /* 在手機版改為垂直排列 */
        align-items: center;
    }
    
    .kk-avatar-section, .kk-info-section {
        width: 100%;
    }
    
    .kk-avatar-section {
        margin-bottom: 20px;
        padding-right: 0;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .kk-avatar-container {
        margin-bottom: 0; /* 移除在手機版的底部間距 */
    }
}

/* 桌面端提示顯示 */
@media (min-width: 769px) {
    .kk-upload-hint {
        display: block;
    }

    .kk-avatar-container::after {
        content: none;
    }

    .kk-avatar-container:hover::after {
        opacity: 1;
        bottom: -25px;
    }
}

/* 手機版顯示提示字 */
.kk-mobile-avatar-hint {
    display: none;
}
.kk-avatar-section p {
    display: inline-block;
}
.kk-avatar-section p,.kk-mobile-avatar-hint {
    text-align: center;
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
    position: relative;
    margin-left: 20px;
}
.kk-mobile-avatar-hint i,.kk-avatar-section p i {
    color: rgb(213, 110, 122);
    margin-right: 4px;
    position: absolute;
    left: -20px;
    top: 3px;
}

@media (max-width: 768px) {
    .kk-mobile-avatar-hint {
        display: inline-block;
    }

    .kk-upload-hint {
        display: none;
    }
}

.kk-carousel-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.kk-carousel-container {
    width: 320px;
    position: relative;
    padding: 0 20px;
}

.kk-avatar-carousel .slick-slide {
    width: 40px !important;
    margin: 0 8px;
    float: none !important;
    display: inline-block !important;
}

/* 防止換行 */
.kk-avatar-carousel {
    white-space: nowrap;
}

/* 社群圖示 */
.kk-social-icons a {
    display: inline-block;
    margin-right: 8px;
}

.kk-social-icons img {
    height: 24px;
    width: auto;
}

/* 社群連結輸入框 */
.kk-social-link-input {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.kk-social-link-input img {
    height: 24px;
    width: auto;
    margin-right: 10px;
}

.kk-social-link-input label {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: 500;
}

/* 優化輸入框的範例文字樣式 */
.kk-social-url::placeholder,
.form-control::placeholder {
    color: #c0c0c0;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* 聚焦時輸入框樣式 */
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(213, 110, 122, 0.25);
    border-color: #d56e7a;
}

/* 專長標籤 */
.kk-strength-tag {
    display: inline-block;
    background-color: rgb(213, 110, 122);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
}

.kk-strength-tag:hover {
    background-color: rgb(193, 90, 102);
    color: white;
    text-decoration: none;
}

/* 專長領域選項 */
.kk-strength-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.kk-strength-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.kk-strength-option .kk-strength-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kk-strength-option .kk-strength-tag {
    display: inline-flex;
    align-items: center;
    background-color: rgb(213, 110, 122);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kk-strength-checkbox:not(:checked)+.kk-strength-tag {
    background-color: #6c757d;
    opacity: 0.7;
}

.kk-strength-option:hover .kk-strength-tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.kk-strength-option:active .kk-strength-tag {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 勾選符號作為選中狀態的視覺提示 */
.kk-strength-checkbox:checked+.kk-strength-tag::before {
    content: "\f00c";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 8px;
    font-size: 0.7rem;
}

/* 自定義輪播箭頭樣式 */
.kk-avatar-carousel .slick-prev, 
.kk-avatar-carousel .slick-next {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 25px;
    height: 25px;
    padding: 0;
    transform: translate(0, -50%);
    cursor: pointer;
    color: transparent;
    border: none;
    outline: none;
    background: transparent;
    z-index: 1;
}

.kk-avatar-carousel .slick-prev {
    left: -25px;
}

.kk-avatar-carousel .slick-next {
    right: -25px;
}

.kk-avatar-carousel .slick-prev:before, 
.kk-avatar-carousel .slick-next:before {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    color: rgb(213, 110, 122);
    opacity: 1;
}

.kk-avatar-carousel .slick-prev:before {
    content: '\f053';
}

.kk-avatar-carousel .slick-next:before {
    content: '\f054';
}

/* 當在輪播頭/尾時調整箭頭透明度 */
.kk-avatar-carousel .slick-disabled:before {
    opacity: 0.3 !important;
}

/* 管理區塊樣式 */
.kk-section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 30px;
}

/* 作品管理樣式 */
.kk-artwork-item {
    cursor: grab;
}

.kk-artwork-item.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

/* 作品卡片樣式 */
.kk-artwork-preview {
    position: relative;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.kk-artwork-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.kk-artwork-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* 刪除按鈕樣式 */
.kk-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(220, 53, 69, 0.85);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.kk-artwork-preview:hover .kk-delete-btn {
    opacity: 1;
}

.kk-delete-btn:hover {
    background-color: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

/* 拖曳手柄樣式 */
.kk-drag-handle {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(52, 58, 64, 0.7);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.kk-artwork-preview:hover .kk-drag-handle {
    opacity: 1;
}

.kk-drag-handle:hover {
    background-color: rgba(52, 58, 64, 0.9);
    transform: scale(1.1);
}

.kk-artwork-item.dragging .kk-drag-handle {
    cursor: grabbing;
}

.kk-order-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgb(213, 110, 122);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
}

/* 上傳區塊樣式 */
.kk-upload-box {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    width: 100%;
}

.kk-upload-box:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-3px);
}

.kk-upload-box:active {
    transform: translateY(-1px);
}

.kk-upload-box i {
    font-size: 3.5rem;
    color: #6c757d;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.kk-upload-box:hover i {
    transform: scale(1.1);
}

.kk-upload-box .kk-upload-text {
    transition: all 0.3s ease;
}

.kk-upload-box:hover .kk-upload-text {
    transform: translateY(2px);
}

.kk-upload-box .kk-drag-text {
    margin-top: 10px;
    color: #6c757d;
    font-size: 0.85rem;
}

/* 按鈕樣式 */
.kk-btn-primary {
    background-color: rgb(213, 110, 122);
    border-color: rgb(213, 110, 122);
}

.kk-btn-primary:hover {
    background-color: rgb(193, 90, 102);
    border-color: rgb(193, 90, 102);
}
.kk-profile-section h4 {
    font-size: 1.25rem;
}
/* 響應式設計 */
@media (max-width: 768px) {
    .kk-profile-section {
        flex-direction: column;
    }
    
    .kk-profile-info {
        margin-top: 20px;
    }
    
    .kk-social-icons {
        margin-top: 10px;
    }
    
    .kk-profile-section .text-center {
        text-align: left !important;
    }
    
    .kk-avatar-info-container {
        flex-direction: column;
        align-items: center;
    }

    .kk-avatar-container {
        margin-right: 0;
        margin-bottom: 20px;
    }

    .kk-profile-input-container {
        width: 100%;
    }

    .kk-profile-input-container .form-group {
        width: 100%;
    }
}
/*助教作品*/
.filter-buttons {
    text-align: center;
    margin-bottom: 20px;
}

.filter-btn {
    background-color: transparent;
    color: rgb(213, 110, 122);
    border: 1px solid rgb(213, 110, 122);
    border-radius: 8px;
    padding: 8px 25px;
    margin: 8px 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-block;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 0;
    padding-bottom: 100%;
    /* 保持1:1比例 */
    transition: transform 0.5s ease;
    clip: rect(0, auto, auto, 0);
}

.portfolio-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.html-info img.portfolio-img,.portfolio-img  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    object-position: center;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(213, 110, 122, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.5s ease;
    flex-direction: column;
    color: #fff;
}

.html-info h3.portfolio-text {
    font-size: 1.65rem;
    transform: translateY(20px);
    transition: all 0.5s ease;
    margin-bottom: 10px;
}

.more-link {
    font-size: 0.7rem;
    opacity: 0.8;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: block;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-text,
.portfolio-item:hover .more-link {
    transform: translateY(0);
}

.portfolio-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.kk-portfolio-list .portfolio-item:hover {
    transform: scale(1);
    z-index: 10;
}

.html-info a.filter-btn,
.html-info a.filter-btn:visited {
    color: rgb(213, 110, 122);
}

.html-info a.filter-btn:active,
.html-info a.filter-btn:focus,
.html-info a.filter-btn:hover {
    color: #fff;
}

.html-info a.filter-btn.active,
.html-info a.filter-btn.active:visited {
    color: #fff;
}

.filter-btn:hover {
    background-color: rgb(213, 110, 122);
    color: #fff;
}

.filter-btn.active {
    background-color: rgb(213, 110, 122);
    color: #fff;
}

 /* Modal 背景 */
 .portfolio-modal.modal {
    background-color: rgba(0, 0, 0, 0.8);
    padding-right: 0!important;
}

/* 作品 Modal 樣式 */
.portfolio-modal .modal-dialog {
    max-width: 800px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.portfolio-modal .modal-content {
    background-color: transparent;
    border: none;
    position: relative;
}

.portfolio-modal .modal-header {
    display: none;
}

.portfolio-modal .modal-body {
    padding: 0;
    text-align: center;
}

/* 圖片容器 */
.portfolio-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.portfolio-modal .modal-body img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}


.portfolio-author a span {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    position: relative;
    left: 7px;
}

.portfolio-author a:hover span {
    opacity: 0.5;
}

/* 控制按鈕 - 修改部分 */
.portfolio-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    padding: 0 15px;
    transform: translateY(-50%);
}

.portfolio-controls button {
    background-color: rgba(213, 110, 122, 0.8);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.portfolio-controls button[disabled] {
    background-color: rgba(153, 153, 153, 0.5);
    opacity: 0.5;
    cursor: not-allowed;
}

.portfolio-controls button:not([disabled]):hover {
    background-color: rgba(194, 88, 102, 1);
}

/* 關閉按鈕 */
.modal-close-btn {
    display: block;
    margin: 1.5rem auto 0;
    padding: .375rem .75rem;
    background-color: #d56e7a;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background-color: rgb(199, 80, 94);
}

/* 作者連結樣式 */
.author-link {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: rgb(213, 110, 122);
    text-decoration: none;
}

.author-link-icon {
    opacity: 0.5;
    transition: opacity 0.3s ease;
    position: relative;
    top: -3px;
    left: 13px;
}

.author-link:hover .author-link-icon {
    opacity: 1;
}

/* 主講師介紹區塊樣式 */
.instructor-section {
    background-image: url('https://www.krenzartwork.com/img/images/bg_team.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 4rem;
    color: #333;
    position: relative;
}

.instructor-section .container {
    position: relative;
    z-index: 1;
}

.instructor-section h2 {
    color: #333;
}

.instructor-header {
    margin-bottom: 30px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.instructor-avatar {
    margin: 0;
}

.instructor-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.instructor-title-group {
    text-align: left;
}

.instructor-title {
    font-size: 1.5rem;
}

.instructor-name {
    font-size: 4rem;
    margin-bottom: 0;
    font-weight: 400;
}

.instructor-content {
    background-color: #fff;
    max-width: 768px;
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.25);
    padding: 30px 80px 50px 80px;
    border-radius: 8px;
    margin: 25px auto 0;
    position: relative;
}

.arrow-decoration {
    margin: auto;
    width: 55px;
    height: 25px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    box-shadow: 0 16px 0px -17px rgba(0, 0, 0, 0.25);
}

.arrow-decoration::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    transform: rotate(45deg);
    top: 10px;
    left: 10px;
    box-shadow: -1px -1px 10px -2px rgba(0, 0, 0, 0.25);
}

.content-title {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

.instructor-description {
    line-height: 1.8;
    color: #666;
}

@media (max-width: 768px) {
    .instructor-content {
        padding: 30px 20px;
        margin: 0 -15px;
    }
}

/* 作品輪播樣式 */
.kk-works-slider-container {
    max-width: 1110px;
    margin: 0 auto;
    position: relative;
    padding: 0;
}

.works-slide {
    display: flex;
    justify-content: center;
}

.kk-works-slider img {
    width: 100%;
    max-width: 768px;
    height: auto;
    margin: 0 auto;
}

/* 修改輪播按鈕樣式 */
.kk-works-slider-container .slick-prev,
.kk-works-slider-container .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
    z-index: 1;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

/* 隱藏預設箭頭 */
.kk-works-slider-container .slick-prev:before,
.kk-works-slider-container .slick-next:before {
    content: none !important;
    display: none !important;
}

.kk-works-slider-container .slick-prev:hover,
.kk-works-slider-container .slick-next:hover {
    opacity: 0.5;
}

.kk-works-slider-container .slick-prev {
    left: 20px;
}

.kk-works-slider-container .slick-next {
    right: 20px;
}

.kk-works-slider-container .slick-prev svg,
.kk-works-slider-container .slick-next svg {
    width: 20px;
    height: auto;
}

.kk-works-slider .slick-dots {
    bottom: 20px;
    position: absolute;
    width: 100%;
}

.kk-works-slider .slick-dots li {
    margin: 0 4px;
}

.kk-works-slider .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
}

.kk-works-slider .slick-dots li button:before {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.5;
}

.kk-works-slider .slick-dots li.slick-active button:before {
    opacity: 1;
}

/* 當在輪播頭/尾時調整箭頭透明度 */
.kk-works-slider-container .slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .kk-works-slider-container {
        padding: 0 20px;
    }
}

.kk-works-slider-container .slick-prev svg path,
.kk-works-slider-container .slick-next svg path {
    fill: rgb(213, 110, 122);
    transition: fill 0.3s ease;
}

@media (max-width: 768px) {
    .kk-works-slider-container .slick-prev svg path,
    .kk-works-slider-container .slick-next svg path {
        fill: #ffffff;
    }
}

/* 切換按鈕樣式 */
.kk-toggle-btn {
    text-align: center;
    cursor: pointer;
    margin: 20px 0;
}

.kk-toggle-icon {
    width: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
        /* Modal 背景 */
        .portfolio-modal.modal {
            background-color: rgba(0, 0, 0, 0.8);
        }

        /* 作品 Modal 樣式 */
        .portfolio-modal .modal-dialog {
            max-width: 800px;
            margin-top: 30px;
            margin-bottom: 30px;
        }

        .portfolio-modal .modal-content {
            background-color: transparent;
            border: none;
            position: relative;
        }

        .portfolio-modal .modal-header {
            display: none;
        }

        .portfolio-modal .modal-body {
            padding: 0;
            text-align: center;
        }

        /* 圖片容器 */
        .portfolio-image-container {
            position: relative;
            overflow: hidden;
            border-radius: 4px;
        }

        .portfolio-modal .modal-body img {
            width: 100%;
            max-height: 70vh;
            object-fit: contain;
            display: block;
        }


        .portfolio-author a span {
            color: white;
            font-size: 1.5rem;
            text-decoration: none;
            font-weight: 500;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            transition: all 0.3s ease;
            margin-bottom: 0.5rem;
            display: inline-block;
        }


        /* 控制按鈕 - 修改部分 */
        .portfolio-controls {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            display: flex;
            justify-content: space-between;
            z-index: 100;
            padding: 0 15px;
            transform: translateY(-50%);
        }

        .portfolio-controls button {
            background-color: rgba(213, 110, 122, 0.8);
            color: white;
            border: none;
            padding: 12px 15px;
            border-radius: 50%;
            font-size: 16px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
        }

        .portfolio-controls button[disabled] {
            background-color: rgba(153, 153, 153, 0.5);
            opacity: 0.5;
            cursor: not-allowed;
        }

        .portfolio-controls button:not([disabled]):hover {
            background-color: rgba(194, 88, 102, 1);
        }

        /* 關閉按鈕 */
        .modal-close-btn {
            display: block;
            margin: 1.5rem auto 0;
            padding: .375rem .75rem;
            background-color: #d56e7a;
            color: white;
            text-align: center;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .modal-close-btn:hover {
            background-color: rgb(199, 80, 94);
        }

/* CTA 區塊樣式 */
.cta-section {
    background-image: url('https://krenzartwork.beta.today/images/krenzartwork.beta.today/property_images/home_block_free_editor/d80ce44969dd1a45dd47a760cdc7f47b05ff68a6.jpeg?1744014876');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;
    margin-top: 3rem;
    padding: 6em 20px;
}
.cta-section h2 {
    font-weight: bold;
}
.cta-btn {
    display: inline-block;
    text-decoration: none;
    transition: 0.16s;
    border: none;
    cursor: pointer;
    border-radius: 36px;
    padding: 13px 28px;
    line-height: 1.5;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 5px;
    text-align: center;
    width: 200px;
    margin: 10px;
}

.cta-primary {
    background-color: rgb(213, 110, 122);
    color: rgb(255, 255, 255);
}

.cta-primary:hover {
    background-color: rgb(60, 60, 60);
    color: rgb(255, 255, 255);
    text-decoration: none;
}

.cta-secondary {
    background-color: rgb(60, 60, 60);
    color: rgb(255, 255, 255);
}

.cta-secondary:hover {
    background-color: rgb(213, 110, 122);
    color: rgb(255, 255, 255);
    text-decoration: none;
}

/* 手機版導航列垂直置中 */
@media (max-width: 768px) {
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column;
        gap: 15px;
    }
    .kk-carousel-container {
        margin-top: 20px;
    }
}