/* _content/ccpb-frontend-new/Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-9q77h8wjrf] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content[b-9q77h8wjrf] {
    flex: 1;
    width: 100%;
    /* 頂部導航已移除，不需要padding-top */
    padding-top: 0;
}

.top-row[b-9q77h8wjrf] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    /* 頂部導航固定在最上面 - 適用於所有螢幕尺寸 */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

    .top-row[b-9q77h8wjrf]  a, .top-row[b-9q77h8wjrf]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-9q77h8wjrf]  a:hover, .top-row[b-9q77h8wjrf]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-9q77h8wjrf]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

.content[b-9q77h8wjrf] {
    width: 100%;
    max-width: none;
}

@media (max-width: 640.98px) {
    .top-row[b-9q77h8wjrf] {
        justify-content: space-between;
    }

    .top-row[b-9q77h8wjrf]  a, .top-row[b-9q77h8wjrf]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .top-row[b-9q77h8wjrf], article[b-9q77h8wjrf] {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

#blazor-error-ui[b-9q77h8wjrf] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -1 !important;
}

    #blazor-error-ui .dismiss[b-9q77h8wjrf] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* _content/ccpb-frontend-new/Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-3o1n3ayg2q] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-3o1n3ayg2q] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-3o1n3ayg2q] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-3o1n3ayg2q] {
    font-size: 1.1rem;
}

.bi[b-3o1n3ayg2q] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-3o1n3ayg2q] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-3o1n3ayg2q] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-3o1n3ayg2q] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-3o1n3ayg2q] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-3o1n3ayg2q] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-3o1n3ayg2q] {
        padding-bottom: 1rem;
    }

    .nav-item[b-3o1n3ayg2q]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-3o1n3ayg2q]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-3o1n3ayg2q]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-3o1n3ayg2q] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-3o1n3ayg2q] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-3o1n3ayg2q] {
        display: none;
    }

    .nav-scrollable[b-3o1n3ayg2q] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* _content/ccpb-frontend-new/Components/Shared/FloatingAiAssistant.razor.rz.scp.css */
.iltb-ai-assistant[b-tg738kxzf4] {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1080;
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

.iltb-ai-toggle[b-tg738kxzf4] {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #00bfa5, #2e7d7c);
    box-shadow: 0 8px 22px rgba(46, 125, 124, .35);
    font-size: 1.45rem;
}

.iltb-ai-panel[b-tg738kxzf4] {
    display: none;
    position: absolute;
    right: 0;
    bottom: 78px;
    width: min(420px, calc(100vw - 32px));
    max-height: min(620px, calc(100vh - 120px));
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .18);
    border: 1px solid rgba(46, 125, 124, .15);
}

.iltb-ai-panel.open[b-tg738kxzf4] {
    display: flex;
    flex-direction: column;
}

.iltb-ai-header[b-tg738kxzf4] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, #2e7d7c, #00bfa5);
}

.iltb-ai-avatar[b-tg738kxzf4],
.iltb-ai-mini-avatar[b-tg738kxzf4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-weight: 700;
}

.iltb-ai-avatar[b-tg738kxzf4] {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
}

.iltb-ai-title[b-tg738kxzf4] {
    font-weight: 700;
}

.iltb-ai-title span[b-tg738kxzf4] {
    margin-left: .35rem;
    padding: .15rem .4rem;
    border-radius: 999px;
    font-size: .72rem;
    background: rgba(255, 255, 255, .25);
}

.iltb-ai-subtitle[b-tg738kxzf4] {
    margin-top: .15rem;
    font-size: .82rem;
    opacity: .92;
}

.iltb-ai-close[b-tg738kxzf4] {
    margin-left: auto;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 1.4rem;
}

.iltb-ai-body[b-tg738kxzf4] {
    min-height: 300px;
    max-height: 430px;
    overflow-y: auto;
    padding: 1rem;
    background: #f5f7fa;
}

.iltb-ai-msg[b-tg738kxzf4] {
    display: flex;
    gap: .6rem;
    margin-bottom: .85rem;
}

.iltb-ai-msg.user[b-tg738kxzf4] {
    justify-content: flex-end;
}

.iltb-ai-mini-avatar[b-tg738kxzf4] {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #2e7d7c;
    background: #fff;
    font-size: .78rem;
}

.iltb-ai-bubble[b-tg738kxzf4] {
    max-width: 86%;
    padding: .75rem .9rem;
    border-radius: 14px;
    background: #fff;
    color: #333;
    white-space: pre-wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.iltb-ai-msg.user .iltb-ai-bubble[b-tg738kxzf4] {
    color: #fff;
    background: #00bfa5;
}

.iltb-ai-recommend-list[b-tg738kxzf4],
.iltb-ai-quick[b-tg738kxzf4],
.iltb-ai-actions[b-tg738kxzf4] {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: .75rem;
}

.iltb-ai-recommend[b-tg738kxzf4],
.iltb-ai-quick button[b-tg738kxzf4],
.iltb-ai-actions button[b-tg738kxzf4] {
    text-align: left;
    border: 1px solid rgba(0, 191, 165, .35);
    border-radius: 10px;
    background: #fff;
    color: #2e7d7c;
    padding: .55rem .7rem;
}

.iltb-ai-recommend:hover[b-tg738kxzf4],
.iltb-ai-quick button:hover[b-tg738kxzf4],
.iltb-ai-actions button:hover[b-tg738kxzf4] {
    border-color: #00bfa5;
    background: rgba(0, 191, 165, .08);
}

.iltb-ai-recommend .name[b-tg738kxzf4],
.iltb-ai-recommend .summary[b-tg738kxzf4],
.iltb-ai-recommend .tag[b-tg738kxzf4] {
    display: block;
}

.iltb-ai-recommend .name[b-tg738kxzf4] {
    font-weight: 700;
}

.iltb-ai-recommend .summary[b-tg738kxzf4] {
    margin-top: .2rem;
    color: #666;
    font-size: .82rem;
}

.iltb-ai-recommend .tag[b-tg738kxzf4] {
    width: fit-content;
    margin-top: .35rem;
    padding: .12rem .4rem;
    border-radius: 6px;
    color: #00897b;
    background: rgba(0, 191, 165, .14);
    font-size: .72rem;
}

.iltb-ai-footer[b-tg738kxzf4] {
    display: flex;
    gap: .5rem;
    padding: .85rem;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.iltb-ai-footer textarea[b-tg738kxzf4] {
    flex: 1;
    min-height: 44px;
    max-height: 86px;
    resize: none;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: .65rem .8rem;
}

.iltb-ai-footer textarea:focus[b-tg738kxzf4] {
    outline: none;
    border-color: #00bfa5;
}

.iltb-ai-footer > button[b-tg738kxzf4] {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #00bfa5;
}

.iltb-ai-typing span[b-tg738kxzf4] {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 4px;
    border-radius: 50%;
    background: #00bfa5;
    animation: iltb-ai-bounce-b-tg738kxzf4 1.2s infinite ease-in-out;
}

.iltb-ai-typing span:nth-child(2)[b-tg738kxzf4] {
    animation-delay: .15s;
}

.iltb-ai-typing span:nth-child(3)[b-tg738kxzf4] {
    animation-delay: .3s;
}

@keyframes iltb-ai-bounce-b-tg738kxzf4 {
    0%, 80%, 100% { transform: scale(.75); opacity: .5; }
    40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 576px) {
    .iltb-ai-assistant[b-tg738kxzf4] {
        right: 16px;
        bottom: 16px;
    }

    .iltb-ai-panel[b-tg738kxzf4] {
        bottom: 74px;
    }
}
/* _content/ccpb-frontend-new/Components/Shared/IltbHomeHeader.razor.rz.scp.css */
/* 修正：桌面導覽列中文折行（尤其 1200~1399px） */

.system-test-warning[b-5amh1lokxb] {
  color: #c00;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0.25rem 0 0.5rem;
  text-align: left;
}

/* 登入按鈕 / 已登入區塊 — 桌面版固定到 viewport 右上空白處 */
.home-login-area[b-5amh1lokxb] {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

@media (min-width: 1200px) {
  .home-login-area[b-5amh1lokxb] {
    position: fixed;
    top: 50px;
    right: 56px;
    z-index: 1050;
  }
}

/* 美化的登入 / 已登入按鈕（橘色膠囊） */
.home-login-btn[b-5amh1lokxb] {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1.15rem;
  background: linear-gradient(135deg, #ff8a3d 0%, #f06a1a 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  border: none !important;
  border-radius: 999px;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(240, 106, 26, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  white-space: nowrap;
}

.home-login-btn:hover[b-5amh1lokxb],
.home-login-btn:focus[b-5amh1lokxb] {
  background: linear-gradient(135deg, #ffa05c 0%, #ff7e30 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(240, 106, 26, 0.4);
  outline: none;
}

.home-login-btn:active[b-5amh1lokxb] {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(240, 106, 26, 0.3);
}

.home-login-btn.dropdown-toggle[b-5amh1lokxb]::after {
  margin-left: 0.5rem;
}

/* 閒置倒數計時膠囊 */
.home-session-countdown[b-5amh1lokxb] {
  display: inline-flex;
  align-items: center;
  color: #2f4f60;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid rgba(47, 79, 96, 0.25);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.85rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.home-session-countdown i[b-5amh1lokxb] {
  color: #f06a1a;
}

@media (min-width: 1200px) {
  /* 避免桌面導覽項目被拆字折行 */
  .header-top .navbar-nav .nav-link[b-5amh1lokxb] {
    white-space: nowrap;
  }

  /* 避免字級控制按鈕被折行 */
  .header-top .font-level[b-5amh1lokxb] {
    white-space: nowrap;
  }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  /* 讓兩組 ul 不夠寬時「整組換行」，不要拆字 */
  .header-top .navbar-collapse[b-5amh1lokxb] {
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  /* 稍微縮小 logo，釋放空間 */
  .header-top .logo[b-5amh1lokxb] {
    width: 280px;
  }

  /* 縮小導覽文字與左右 padding，避免擠到拆字 */
  .header-top .navbar-nav .nav-link[b-5amh1lokxb] {
    font-size: 0.95em;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .header-top .navbar-nav .btn[b-5amh1lokxb] {
    font-size: 0.95em;
  }
}

@media (max-width: 1199.98px) {
  .system-test-warning[b-5amh1lokxb] {
    font-size: 1.25rem;
  }

  /* 手機版：登入按鈕回到流式排版 */
  .home-login-area[b-5amh1lokxb] {
    position: static;
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0 0.25rem;
  }
}
