/* ==================== 書籍詳情頁面樣式 ==================== */

/* 書籍詳情區域 */
.bookDetailSection {
    /* padding: 25px 0 40px; */
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 50%, #fafafa 100%);
    position: relative;
}

/* ==================== 書籍主卡片 ==================== */
.bookMainCard {
    display: flex;
    gap: 20px;
    background: var(--white-color);
    border-radius: 0 0 12px 12px;
    padding: 20px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    /* margin-bottom: 20px; */
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 模糊背景图片 */
.bookBgBlur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.bookBgBlur img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: blur(35px) brightness(1.4) saturate(1.3);
    opacity: 0.8;
    transform: scale(1.2);
}

/* 白色半透明遮罩 */
.bookMainCard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.5) 100%);
    z-index: 1;
}

.bookMainCard:hover {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* 書籍封面 */
.bookCover {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.coverWrapper {
    position: relative;
    width: 160px;
}

.coverWrapper .listImgBox {
    width: 160px;
    height: 213px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.coverWrapper .listImgBox:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.coverWrapper .listImgBox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coverWrapper .listImgBox:hover img {
    transform: scale(1.08);
}

.coverShadow {
    position: absolute;
    top: 15px;
    left: 10px;
    right: -10px;
    bottom: -15px;
    background: linear-gradient(135deg, var(--primary-light-color-2), var(--primary-light-color));
    border-radius: 12px;
    opacity: 0.3;
    z-index: 1;
    filter: blur(15px);
}

/* 書籍主要信息 */
.bookMainInfo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

/* 書籍標題區 */
.bookHeader {
    border-bottom: 2px solid #bbb;
    padding-bottom: 10px;
}

.bookTitle {
    font-size: 24px;
    font-weight: bold;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.bookMeta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 13px;
}

.bookMeta>span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-333);
}



.bookMeta em {
    font-style: normal;
    color: var(--color-333);
    font-weight: 400;
    font-size: 12px;
}

.bookMeta a {
    color: var(--color-333);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
    text-decoration: underline;
}

.bookMeta a:hover {
    color: var(--color-333);
    text-decoration: underline;
}

.bookMeta strong {
    color: var(--color-333);
    font-weight: 700;
}

/* 標籤 */
.bookTags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bookTag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color));
    color: var(--white-color) !important;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 10種顏色漸變組合 - 深色系确保白色文字清晰可见 */
.bookTag.tag-color-0 {
    background: linear-gradient(120deg, #667eea 0%, #764ba2 100%);
}

.bookTag.tag-color-1 {
    background: linear-gradient(120deg, #f093fb 0%, #c2185b 100%);
}

.bookTag.tag-color-2 {
    background: linear-gradient(120deg, #4facfe 0%, #1565c0 100%);
}

.bookTag.tag-color-3 {
    background: linear-gradient(120deg, #11998e 0%, #38ef7d 100%);
}

.bookTag.tag-color-4 {
    background: linear-gradient(120deg, #fa709a 0%, #d84315 100%);
}

.bookTag.tag-color-5 {
    background: linear-gradient(120deg, #30cfd0 0%, #330867 100%);
}

.bookTag.tag-color-6 {
    background: linear-gradient(120deg, #8e44ad 0%, #c0392b 100%);
}

.bookTag.tag-color-7 {
    background: linear-gradient(120deg, #ff6b6b 0%, #ee5a6f 100%);
}

.bookTag.tag-color-8 {
    background: linear-gradient(120deg, #f39c12 0%, #e67e22 100%);
}

.bookTag.tag-color-9 {
    background: linear-gradient(120deg, #16a085 0%, #2980b9 100%);
}

.bookTag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.bookTag:hover::before {
    left: 100%;
}

.bookTag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* 統計數據 */
.bookStats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bookStats .statItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
}

.statLabel {
    font-size: 12px;
    color: var(--color-333);
    line-height: 1;
    white-space: nowrap;
}

.statValue {
    font-size: 15px;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15)
}

/* 操作按鈕 */
.bookActions {
    display: flex;
    gap: 12px;
    padding-top: 5px;
}

.actionBtn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.actionBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.actionBtn:hover::before {
    width: 300px;
    height: 300px;
}



.actionBtn span {
    position: relative;
    z-index: 1;
}

.actionBtn-primary {
    background: linear-gradient(135deg, var(--primary-color-2), var(--primary-color));
    color: var(--white-color) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.actionBtn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    color: var(--white-color) !important;
}

.actionBtn-collect {
    background: #f5f5f5;
    color: var(--color-333);
}

.actionBtn-collect::before {
    background: rgba(0, 0, 0, 0.05);
}

.actionBtn-collect:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 已加入状态 */
.actionBtn-added {
    background: #e0e0e0 !important;
    color: #999 !important;
    cursor: not-allowed !important;
    pointer-events: none;
    opacity: 0.6;
}

.actionBtn-rating {
    background: #f5f5f5;
    color: var(--color-333);
}

.actionBtn-rating::before {
    background: rgba(0, 0, 0, 0.05);
}

.actionBtn-rating:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.actionBtn-share {
    background: #f5f5f5;
    color: var(--color-333);
}

.actionBtn-share::before {
    background: rgba(0, 0, 0, 0.05);
}

.actionBtn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* 書籍簡介（整合在主卡片內） */
.bookIntro {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.introText {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 響應式設計 ==================== */
@media screen and (max-width: 1080px) {
    .bookDetailSection {
        /* padding: 15px 0 25px; */
    }

    .bookMainCard {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }

    .coverWrapper {
        width: 140px;
        margin: 0 auto;
    }

    .coverWrapper .listImgBox {
        width: 140px;
        height: 186px;
    }

    .bookTitle {
        font-size: 20px;
        text-align: center;
    }

    .bookMeta {
        justify-content: center;
        font-size: 13px;
        gap: 15px;
    }

    .bookTags {
        justify-content: center;
    }

    /* 移動端禁用標籤 hover 效果 */
    .bookTag:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        filter: none;
    }

    .bookTag:hover::before {
        left: -100%;
    }

    .bookStats {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .bookStats .statItem {
        flex-direction: column;
        align-items: center;
        padding: 8px 4px;
        gap: 4px;
    }

    .statLabel {
        font-size: 10px;
        order: 1;
    }

    .statValue {
        font-size: 14px;
        order: 2;
    }

    .bookActions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .actionBtn {
        padding: 10px 8px;
        font-size: 13px;
    }

    .bookIntroCard {
        padding: 20px;
    }

    .cardTitle {
        font-size: 16px;
    }

    .bookIntroText p {
        font-size: 13px;
    }
}


/* ==================== 作者作品彈層 ==================== */
.authorModalBox {
    width: 90%;
    max-width: 1080px;
    max-height: 80vh;
    margin: 5vh auto;
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.authorModalClose {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.authorModalClose::before,
.authorModalClose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    background: #666;
    transition: background 0.3s ease;
}

.authorModalClose::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.authorModalClose::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.authorModalClose:hover {
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.1);
}

.authorModalClose:hover::before,
.authorModalClose:hover::after {
    background: var(--color-333);
}

.authorModalHeader {
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--color-efefef);
    background: linear-gradient(135deg, var(--primary-light-color-2), var(--primary-light-color));
}

.authorModalTitle {
    font-size: 22px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0 0 8px 0;
}

.authorModalDesc {
    font-size: 14px;
    color: var(--color-666);
    margin: 0;
}

.authorModalContent {
    padding: 10px 30px 25px;
    max-height: calc(80vh - 120px);
    overflow-y: auto;
}

.authorModalContent .listBox {
    margin-top: 0;
    width: 100%;
}

/* listBox-w3 樣式（3列布局） */
.authorModalContent .listBox-w3 .listItem {
    width: calc(33.333% - 10px) !important;
    margin: 15px 15px 0 0 !important;
}

.authorModalContent .listBox-w3 .listItem:nth-child(3n) {
    margin-right: 0 !important;
}

.authorModalContent .listBox-w3 .listItem:nth-child(3n+1) {
    margin-right: 15px !important;
}

.authorModalContent .listBox-w3 .listItem:nth-child(3n+2) {
    margin-right: 15px !important;
}

/* listBox-w5 樣式（5列布局） */
.authorModalContent .listBox-w5 .listItem {
    width: calc(20% - 12px) !important;
    margin: 15px 15px 0 0 !important;
}

.authorModalContent .listBox-w5 .listItem:nth-child(5n) {
    margin-right: 0 !important;
}

.authorModalContent .listBox-w5 .listItem:nth-child(5n+1),
.authorModalContent .listBox-w5 .listItem:nth-child(5n+2),
.authorModalContent .listBox-w5 .listItem:nth-child(5n+3),
.authorModalContent .listBox-w5 .listItem:nth-child(5n+4) {
    margin-right: 15px !important;
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {
    .authorModalBox {
        width: 95%;
        max-height: 85vh;
        margin: 7.5vh auto;
    }

    .authorModalHeader {
        padding: 25px 20px 15px;
    }

    .authorModalTitle {
        font-size: 18px;
    }

    .authorModalDesc {
        font-size: 13px;
    }

    .authorModalContent {
        padding: 8px 15px 20px;
        max-height: calc(85vh - 100px);
    }

    /* listBox-w3 移動端：單列 */
    .authorModalContent .listBox-w3 .listItem {
        width: 100% !important;
        margin: 12px 0 0 0 !important;
    }

    /* listBox-w5 移動端：兩列 */
    .authorModalContent .listBox-w5 .listItem {
        width: calc(50% - 6px) !important;
        margin: 12px 12px 0 0 !important;
    }

    /* 重置桌面端的 5n 規則 */
    .authorModalContent .listBox-w5 .listItem:nth-child(5n),
    .authorModalContent .listBox-w5 .listItem:nth-child(5n+1),
    .authorModalContent .listBox-w5 .listItem:nth-child(5n+2),
    .authorModalContent .listBox-w5 .listItem:nth-child(5n+3),
    .authorModalContent .listBox-w5 .listItem:nth-child(5n+4) {
        margin-right: 12px !important;
    }

    /* 應用 2n 規則 */
    .authorModalContent .listBox-w5 .listItem:nth-child(2n) {
        margin-right: 0 !important;
    }

    .authorModalClose {
        top: 15px;
        right: 15px;
        width: 32px;
        height: 32px;
    }
}


/* ==================== 評分彈層 ==================== */
.ratingModalBox {
    width: 90%;
    max-width: 500px;
    margin: 10vh auto;
    background: var(--white-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    position: relative;
}

.ratingModalClose {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.ratingModalClose::before,
.ratingModalClose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: #666;
    transition: background 0.3s ease;
}

.ratingModalClose::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.ratingModalClose::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.ratingModalClose:hover {
    transform: rotate(90deg);
    background: rgba(0, 0, 0, 0.1);
}

.ratingModalClose:hover::before,
.ratingModalClose:hover::after {
    background: var(--color-333);
}

.ratingModalHeader {
    padding: 25px 25px 20px;
    border-bottom: 2px solid var(--color-efefef);
    background: linear-gradient(135deg, var(--primary-light-color-2), var(--primary-light-color));
}

.ratingModalTitle {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0 0 8px 0;
}

.ratingModalBookName {
    font-size: 14px;
    color: var(--color-666);
    margin: 0;
}

.ratingModalContent {
    padding: 30px 25px;
}

/* 星星評分 */
.ratingStars {
    margin-bottom: 25px;
}

.starsLabel {
    font-size: 15px;
    color: var(--color-333);
    margin-bottom: 15px;
    font-weight: 500;
}

.starsWrapper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.star {
    font-size: 36px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
}

.star:hover,
.star.hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.star.selected {
    color: var(--primary-color);
}

.ratingValue {
    text-align: center;
    font-size: 18px;
    color: var(--color-333);
    font-weight: bold;
}

.ratingValue #currentRating {
    color: var(--primary-color);
    font-size: 24px;
}

/* 評論輸入 */
.ratingComment {
    margin-bottom: 25px;
}

.commentLabel {
    display: block;
    font-size: 15px;
    color: var(--color-333);
    margin-bottom: 10px;
    font-weight: 500;
}

.commentTextarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.commentTextarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

/* 操作按鈕 */
.ratingActions {
    display: flex;
    gap: 12px;
}

.ratingBtn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ratingBtn-cancel {
    background: #f5f5f5;
    color: var(--color-333);
}

.ratingBtn-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ratingBtn-submit {
    background: linear-gradient(135deg, var(--primary-color-2), var(--primary-color));
    color: var(--white-color);
}

.ratingBtn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {
    .ratingModalBox {
        width: 95%;
        max-width: 100%;
    }

    .ratingModalHeader {
        padding: 20px 20px 15px;
    }

    .ratingModalTitle {
        font-size: 18px;
    }

    .ratingModalBookName {
        font-size: 13px;
    }

    .ratingModalContent {
        padding: 25px 20px;
    }

    .starsWrapper {
        gap: 6px;
    }

    .star {
        font-size: 30px;
    }

    .commentTextarea {
        height: 100px;
    }
}


/* ==================== 評論區 ==================== */


.commentsHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--white-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary-shadow-color);
}

.commentsHeader:hover {
    box-shadow: 0 0 8px var(--primary-shadow-color);
    transform: translateY(-2px);
}

.commentsHeaderLeft {
    display: flex;
    align-items: center;
    gap: 10px;
}

.commentsIcon {
    width: 32px;
    height: 32px;
    padding: 4px;
    background: linear-gradient(120deg, var(--primary-color-2), var(--primary-color));
    border-radius: 6px;
}

.commentsTitle {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0;
}

.commentsCount {
    font-size: 14px;
    color: var(--color-666);
}

.commentsToggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    padding: 8px 12px;
    margin: -8px -12px;
}

.toggleIcon {
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(135deg);
    transition: transform 0.3s ease;
}

.commentsHeader.expanded .toggleIcon {
    transform: rotate(-45deg);
}

.commentsContent {
    margin-top: 15px;
    background: var(--white-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.commentsList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.commentItem {
    padding: 15px;
    background: #fafafa;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.commentsList .commentItem:last-child {
    margin-bottom: 20px;
}

.commentUser {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.userAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.userAvatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.userInfo {
    flex: 1;
}

.userName {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-333);
    margin-bottom: 4px;
}

.commentTime {
    font-size: 12px;
    color: var(--color-999);
}

.commentRating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.commentStars {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 1;
    display: block;
}

.commentScore {
    font-size: 13px;
    color: var(--color-666);
    font-weight: 600;
}

.commentText {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-666);
}

.commentsMore {
    /*margin-top: 20px;*/
    text-align: center;
}

.moreBtn {
    display: inline-block;
    padding: 10px 30px;
    background: #f5f5f5;
    color: var(--color-333);
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.moreBtn:hover {
    background: var(--primary-light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {

    .commentsHeader {
        border-radius: 0;
        padding: 12px 15px;
    }

    .commentsTitle {
        font-size: 16px;
    }

    .commentsContent {
        padding: 12px;
    }

    .commentItem {
        padding: 12px;
    }

    .userAvatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .commentsIcon {
        width: 26px;
        height: 26px;
        padding: 3px;
    }
}


/* ==================== 最新章節 ==================== */
.latestChapterSection {
    padding: 0;
}

.latestChapterLink {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, var(--primary-light-color-2), var(--primary-light-color));
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px var(--primary-shadow-color);
}

.latestChapterLink:hover {
    box-shadow: 0 0 8px var(--primary-shadow-color);
    transform: translateY(-2px);
}

.chapterLeft {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.chapterLabel {
    font-size: 14px;
    color: var(--color-666);
    font-weight: 500;
    flex-shrink: 0;
}

.chapterName {
    font-size: 15px;
    color: var(--color-333);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chapterRight {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.chapterTime {
    font-size: 13px;
    color: var(--color-999);
}

.chapterIcon {
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.latestChapterLink:hover .chapterIcon {
    transform: rotate(45deg) translateX(3px);
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {
    .latestChapterLink {
        padding: 12px 15px;
    }

    .chapterLabel {
        font-size: 13px;
    }

    .chapterName {
        font-size: 14px;
    }

    .chapterTime {
        font-size: 12px;
    }
}


/* ==================== 章節目錄 ==================== */
.chapterCatalogSection {
    padding: 0;
}

.catalogHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.catalogTitle {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-333);
    margin: 0;
}

.catalogCount {
    font-size: 14px;
    color: var(--color-666);
}

.catalogTabs {
    margin-bottom: 15px;
    overflow: hidden;
}

.tabsWrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

.tabsWrapper::-webkit-scrollbar {
    height: 6px;
}

.tabsWrapper::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.tabsWrapper::-webkit-scrollbar-thumb {
    background: var(--primary-light-color);
    border-radius: 3px;
}

.tabsWrapper::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.tabBtn {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f5f5f5;
    color: var(--color-666);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabBtn:hover {
    background: var(--primary-light-color);
    color: var(--primary-color);
}

.tabBtn.active {
    background: linear-gradient(135deg, var(--primary-color-2), var(--primary-color));
    color: var(--white-color);
}

.catalogContent {
    background: var(--white-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.chapterList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.chapterItem {
    display: flex;
    align-items: center;
    max-width: 505px;
    gap: 10px;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 0;
}

.chapterItem:hover {
    background: var(--primary-light-color);
    transform: translateX(4px);
}

.chapterNum {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

.chapterTitle {
    font-size: 14px;
    color: var(--color-333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.chapterDesc {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    flex-shrink: 0;
}

/* 移動端樣式 */
@media screen and (max-width: 1080px) {
    .catalogHeader {
        margin-bottom: 12px;
    }

    .catalogTitle {
        font-size: 16px;
    }

    .catalogCount {
        font-size: 13px;
    }

    .tabBtn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .catalogContent {
        padding: 12px;
    }

    .chapterList {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .chapterItem {
        max-width: 100%;
        padding: 8px 10px;
        min-width: 0;
    }
}