.view-rocker-wrap.mini.ntut-style {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fbf8ea, #f2ecd4);
    border: 1px solid #ddd4b8;
    box-shadow:
        0 3px 8px rgba(80, 70, 40, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.75);
    font-family: "Microsoft JhengHei", Arial, sans-serif;
}

/* 小型開關外框 */
.view-rocker-wrap.mini.ntut-style .view-rocker {
    position: relative;
    display: inline-block;
    width: 104px;
    height: 44px;
    overflow: hidden;
    color: #7d8796;
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    user-select: none;
    border-bottom: 5px solid #cfc8b2;
    filter: drop-shadow(0 3px 4px rgba(60, 60, 60, 0.12));
}

/* 底座 */
.view-rocker-wrap.mini.ntut-style .view-rocker::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    bottom: 0;
    border: 5px solid #e9e4d1;
    border-bottom: 0;
    border-radius: 8px 8px 3px 3px;
    background: linear-gradient(to bottom, #b8b3a6, #908978);
    box-shadow:
        inset 0 2px 3px rgba(255,255,255,0.22),
        inset 0 -2px 5px rgba(0,0,0,0.15);
}

/* 隱藏 checkbox */
.view-rocker-wrap.mini.ntut-style .view-rocker input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* 左右按鍵 */
.view-rocker-wrap.mini.ntut-style .rocker-left,
.view-rocker-wrap.mini.ntut-style .rocker-right {
    position: absolute;
    z-index: 2;
    bottom: 0;
    width: 45px;
    height: 28px;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;

    transition:
        bottom 0.2s ease,
        left 0.2s ease,
        right 0.2s ease,
        width 0.2s ease,
        height 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.view-rocker-wrap.mini.ntut-style .rocker-icon {
    font-size: 13px;
    line-height: 1;
}

.view-rocker-wrap.mini.ntut-style .rocker-text {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

/* =========================
   預設狀態：手機版啟用
   checkbox 未勾選
   ========================= */

/* 手機版：深藍按下 */
.view-rocker-wrap.mini.ntut-style .rocker-left {
    left: 8px;
    bottom: 0;
    width: 47px;
    height: 29px;
    color: #ffffff;
    background: linear-gradient(to bottom, #0046b8, #003399);
    border-radius: 6px 3px 3px 6px;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.28),
        inset 0 -2px 4px rgba(0,35,95,0.28),
        0 1px 3px rgba(10,60,150,0.20);
    transform: rotate(0deg) skewX(0deg);
}

/* 電腦版：米黃色浮起 */
.view-rocker-wrap.mini.ntut-style .rocker-right {
    right: 9px;
    bottom: 5px;
    width: 43px;
    height: 27px;
    color: #003399;
    background: linear-gradient(to bottom, #f6f1de, #dfd7c0);
    border-radius: 3px 6px 6px 3px;
    transform: rotate(-12deg) skewX(-12deg);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.8),
        inset 0 -2px 4px rgba(130,120,90,0.16),
        0 2px 4px rgba(80,80,80,0.12);
}

/* 側面厚度 */
.view-rocker-wrap.mini.ntut-style .rocker-left::before,
.view-rocker-wrap.mini.ntut-style .rocker-right::before {
    content: "";
    position: absolute;
    bottom: -5px;
    width: 6px;
    height: 27px;
}

/* 手機按下時，左側不顯示厚度 */
.view-rocker-wrap.mini.ntut-style .rocker-left::before {
    left: -6px;
    transform: skewY(-62deg);
    background: transparent;
}

/* 電腦浮起時，右側顯示厚度 */
.view-rocker-wrap.mini.ntut-style .rocker-right::before {
    right: -5px;
    transform: skewY(62deg);
    background: linear-gradient(to bottom, #d7cfb8, #bfb69c);
}

/* =========================
   checked 狀態：電腦版啟用
   checkbox 勾選
   ========================= */

/* 電腦版時，手機變成灰色浮起，避免和電腦按鈕太像 */
.view-rocker-wrap.mini.ntut-style .view-rocker input:checked + .rocker-left {
    left: 9px;
    bottom: 5px;
    width: 43px;
    height: 27px;

    color: #6f7890;
    background: linear-gradient(to bottom, #eeeeee, #d4d4d4);

    transform: rotate(12deg) skewX(12deg);
    border-radius: 6px 3px 3px 6px;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.85),
        inset 0 -2px 4px rgba(100,100,100,0.12),
        0 2px 4px rgba(80,80,80,0.10);
}

.view-rocker-wrap.mini.ntut-style .view-rocker input:checked + .rocker-left::before {
    left: -5px;
    background: linear-gradient(to bottom, #c8c8c8, #adadad);
}

/* 電腦版時，電腦變成深藍按下 */
.view-rocker-wrap.mini.ntut-style .view-rocker input:checked + .rocker-left + .rocker-right {
    right: 8px;
    bottom: 0;
    width: 47px;
    height: 29px;

    color: #ffffff;
    background: linear-gradient(to bottom, #0046b8, #003399);

    transform: rotate(0deg) skewX(0deg);
    border-radius: 3px 6px 6px 3px;
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.28),
        inset 0 -2px 4px rgba(0,35,95,0.28),
        0 1px 3px rgba(10,60,150,0.20);
}

.view-rocker-wrap.mini.ntut-style .view-rocker input:checked + .rocker-left + .rocker-right::before {
    background: transparent;
}

/* hover */
.view-rocker-wrap.mini.ntut-style .view-rocker:hover .rocker-left,
.view-rocker-wrap.mini.ntut-style .view-rocker:hover .rocker-right {
    filter: brightness(1.03);
}

/* focus */
.view-rocker-wrap.mini.ntut-style .view-rocker input:focus-visible + .rocker-left,
.view-rocker-wrap.mini.ntut-style .view-rocker input:focus-visible + .rocker-left + .rocker-right {
    outline: 2px solid rgba(11, 67, 173, 0.25);
    outline-offset: 1px;
}

.view-mode-toolbar {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0 12px;
}

/* 手機版：置中，跟標題保持距離 */
@media (max-width: 768px) {
    .view-mode-toolbar {
        justify-content: center;
        margin: 12px 0 16px;
    }
}

/* 電腦版：不要太靠左，放到主要內容寬度內的右側 */
@media (min-width: 769px) {
    .view-mode-toolbar {
        width: 760px;
        max-width: calc(100% - 40px);
        margin: 10px auto 6px;
        justify-content: flex-end;
    }
}