/* 無效關鍵影格與幽靈動效 */
@keyframes _db_phantom_scan_w1 {
    0% { border-color: #1e293b; opacity: 0; }
    50% { border-color: #38bdf8; opacity: 0; }
    100% { border-color: #1e293b; opacity: 0; }
}

._db_svg_ghost {
    animation: _db_phantom_scan_w1 10s infinite linear;
    position: absolute;
    top: -9999px;
    left: -9999px;
}

/* SaaS 工作台暗藍基底 */
._db_body_s4 {
    background-color: #0f172a;
    color: #94a3b8;
}

/* 左側固定導航欄 (Sidebar Workspace) */
._db_sidebar {
    width: 250px;
    background: #1e293b;
    border-right: 1px solid #334155;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    box-sizing: border-box;
}

._db_brand_box {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 30px;
}

._db_brand_icon {
    width: 10px;
    height: 10px;
    background: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 10px #38bdf8;
}

._db_h1_title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0;
}

._db_nav_menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

._db_menu_item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 10px 14px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

._db_menu_item:hover, ._db_menu_active {
    background: #0f172a;
    color: #38bdf8;
}

._db_icon {
    font-weight: 800;
    color: #38bdf8;
}

._db_side_widget {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 14px;
    margin-top: 20px;
}

._db_widget_title {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

._db_metric_row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

/* 右側主工作區 */
._db_main_content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

._db_top_header {
    background: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 14px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

._db_hdr_info {
    font-size: 0.88rem;
    color: #64748b;
}

._db_search_bar {
    display: flex;
    gap: 6px;
}

._db_ipt_srch {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 7px 12px;
    color: #f8fafc;
    font-size: 0.85rem;
    width: 200px;
}

._db_btn_srch {
    background: #0284c7;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 7px 16px;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
}

._db_btn_srch:hover {
    background: #0369a1;
}

/* 內容展演區 */
._db_container {
    padding: 28px;
    flex: 1;
}

._db_grid_cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 22px;
}

._db_card_item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 22px;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

._db_card_item:hover {
    border-color: #38bdf8;
    transform: translateY(-3px);
}

._db_card_hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

._db_node_pill {
    font-size: 0.72rem;
    font-weight: 800;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

._db_card_time {
    font-size: 0.75rem;
    color: #64748b;
}

._db_h3_heading {
    font-size: 1.15rem;
    color: #f8fafc;
    margin: 0 0 10px 0;
    line-height: 1.35;
}

._db_card_body {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}

._db_match_tag {
    color: #38bdf8;
    font-weight: 800;
}

._db_card_ft {
    margin-top: 16px;
    border-top: 1px solid #334155;
    padding-top: 10px;
    text-align: right;
}

._db_btn_link {
    font-size: 0.8rem;
    font-weight: 800;
    color: #38bdf8;
}

/* FAQ 板塊 */
._db_faq_section {
    margin-top: 40px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 24px;
}

._db_faq_hd {
    font-size: 1.1rem;
    color: #f8fafc;
    margin: 0 0 16px 0;
    border-left: 4px solid #38bdf8;
    padding-left: 10px;
}

._db_faq_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

._db_faq_box {
    cursor: pointer;
}

._db_faq_box h5 {
    font-size: 0.9rem;
    color: #38bdf8;
    margin: 0 0 6px 0;
}

._db_faq_box p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* 頁尾 */
._db_ft_zone {
    background: #0f172a;
    border-top: 1px solid #334155;
    padding: 24px;
}

._db_link_matrix {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

._db_lk_item {
    color: #64748b;
    text-decoration: none;
    font-size: 0.82rem;
}

._db_lk_item:hover {
    color: #38bdf8;
}

/* 行動端適配 */
@media (max-width: 768px) {
    ._db_layout_wrapper {
        flex-direction: column;
    }
    ._db_sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #334155;
    }
    ._db_top_header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    ._db_ipt_srch {
        width: 100%;
    }
    ._db_faq_grid {
        grid-template-columns: 1fr;
    }
}