﻿/* 操作指引：左流程 / 右內容（單檔 CSS） */

.og-page {
    display: flex;
    gap: 18px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 12px;
}

/* Sidebar */
.og-sidebar {
    width: 320px;
    position: sticky;
    top: 86px;
    align-self: flex-start;
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.og-sidebar-header {
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid rgba(148,163,184,.18);
}

.og-title {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.og-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.7);
    margin-top: 4px;
}

.og-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
}

.og-nav-item {
    appearance: none;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(2,6,23,.35);
    color: #fff;
    border-radius: 12px;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-align: left;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

    .og-nav-item:hover {
        transform: translateY(-1px);
        border-color: rgba(56,189,248,.55);
    }

    .og-nav-item.is-active {
        border-color: rgba(56,189,248,.9);
        background: rgba(56,189,248,.12);
    }

.og-nav-num {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: rgba(255,255,255,.10);
}

.og-nav-text {
    font-size: 14px;
    font-weight: 700;
}

/* Content */
.og-content {
    flex: 1;
    min-width: 0;
}

.og-step {
    border: 1px solid rgba(148,163,184,.20);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
    background: rgba(2,6,23,.30);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Step Header with collapse button */
.og-step-header {
    position: relative;
    padding-right: 60px;
}

    .og-step-header h2 {
        margin: 0 0 6px 0;
        color: #fff;
        font-size: 22px;
    }

/* 收合按鈕：右邊、大一點 */
.og-collapse-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(148,163,184,.3);
    border-radius: 12px;
    background: rgba(56,189,248,.15);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
}

    .og-collapse-btn:hover {
        background: rgba(56,189,248,.3);
        border-color: rgba(56,189,248,.6);
        transform: scale(1.05);
    }

.og-collapse-icon {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #fff;
    transition: transform .2s ease;
}

/* 收合狀態 */
.og-step.is-collapsed .og-collapse-icon {
    transform: rotate(-90deg);
}

.og-step.is-collapsed > *:not(.og-step-header) {
    display: none;
}

.og-lead {
    margin: 0;
    color: rgba(255,255,255,.74);
    line-height: 1.7;
}

/* 圖片預留區 */
.og-media {
    margin-top: 14px;
    border: 1px dashed rgba(148,163,184,.35);
    border-radius: 14px;
    padding: 12px;
    background: rgba(15,23,42,.25);
}

.og-media-hint {
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

/* 統一 og-media-img 圖片比例與裁切，避免超出版面 */
.og-media-img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 360px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 12px;
    margin-top: 10px;
    cursor: zoom-in;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}

@media (max-width: 600px) {
    .og-media-img {
        aspect-ratio: 4/3;
        max-height: 200px;
    }
}

/* 卡片 */
.og-card {
    margin-top: 14px;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,23,42,.35);
    border-radius: 14px;
    padding: 14px;
    color: #fff;
}

    .og-card h3 {
        margin: 0 0 10px 0;
        font-size: 16px;
    }

.og-list {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,.78);
}

    .og-list li {
        margin: 6px 0;
    }

.og-steps {
    margin: 0;
    padding-left: 18px;
    color: rgba(255,255,255,.78);
}

    .og-steps li {
        margin: 10px 0;
    }

.og-note {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid rgba(56,189,248,.85);
    background: rgba(56,189,248,.10);
    color: rgba(255,255,255,.86);
    border-radius: 10px;
}

/* Code block - 強制套用 Prism 樣式 */
.og-codeblock {
    margin-top: 14px;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    overflow: hidden;
}

.og-codebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148,163,184,.15);
    background: rgba(15,23,42,.50);
}

.og-codetitle {
    color: #fff;
    font-weight: 800;
    font-size: 14px;
}

.og-copy {
    border: 1px solid rgba(148,163,184,.25);
    background: rgba(255,255,255,.06);
    color: #fff;
    border-radius: 10px;
    padding: 6px 10px;
    cursor: pointer;
}

    .og-copy:hover {
        border-color: rgba(56,189,248,.7);
    }

/* 讓 Prism 樣式正確顯示 */
.og-code {
    margin: 0 !important;
    padding: 0 !important;
    background: #2d2d2d !important;
}

    .og-code code {
        display: block;
        padding: 16px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        overflow-x: auto;
    }

.og-codenote {
    padding: 10px 12px;
    border-top: 1px solid rgba(148,163,184,.12);
    color: rgba(255,255,255,.70);
    background: rgba(15,23,42,.28);
    font-size: 13px;
}

/* Prompt */
.og-prompt {
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(15,23,42,.35);
}

.og-prompt-title {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(148,163,184,.12);
    font-weight: 900;
}

.og-prompt-body {
    padding: 12px;
    color: rgba(255,255,255,.82);
    line-height: 1.75;
}

/* Table */
.og-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

    .og-table th, .og-table td {
        border: 1px solid rgba(148,163,184,.18);
        padding: 10px;
        color: rgba(255,255,255,.85);
    }

    .og-table th {
        background: rgba(255,255,255,.06);
    }

.og-hot {
    color: #ff77b7;
    font-weight: 900;
    padding: 0 4px;
    border-radius: 6px;
    background: rgba(255,119,183,.12);
    border: 1px solid rgba(255,119,183,.35);
}

/* 回到頂部按鈕 */
.og-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(56,189,248,.5);
    border-radius: 50%;
    background: rgba(15,23,42,.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .25s ease;
    z-index: 1000;
}

    .og-back-to-top.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .og-back-to-top:hover {
        background: rgba(56,189,248,.25);
        border-color: rgba(56,189,248,.8);
        transform: translateY(-3px);
    }

.og-btt-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* RWD */
@media (max-width: 980px) {
    .og-page {
        flex-direction: column;
    }

    .og-sidebar {
        width: 100%;
        position: relative;
        top: auto;
    }

    .og-back-to-top {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}

/* ===== 白天模式配色 ===== */
@media (prefers-color-scheme: light) {
    .og-sidebar {
        background: rgba(255,255,255,.9);
        border-color: rgba(100,116,139,.25);
    }

    .og-title {
        color: #1e293b;
    }

    .og-subtitle {
        color: rgba(30,41,59,.7);
    }

    .og-nav-item {
        background: rgba(241,245,249,.9);
        border-color: rgba(100,116,139,.2);
        color: #334155;
    }

        .og-nav-item:hover {
            border-color: rgba(59,130,246,.6);
        }

        .og-nav-item.is-active {
            border-color: rgba(59,130,246,.9);
            background: rgba(59,130,246,.12);
        }

    .og-nav-num {
        background: rgba(30,41,59,.1);
    }

    .og-step {
        background: rgba(255,255,255,.85);
        border-color: rgba(100,116,139,.2);
    }

    .og-step-header h2 {
        color: #1e293b;
    }

    .og-collapse-btn {
        background: rgba(59,130,246,.1);
        border-color: rgba(100,116,139,.25);
    }

        .og-collapse-btn:hover {
            background: rgba(59,130,246,.2);
        }

    .og-collapse-icon {
        border-top-color: #334155;
    }

    .og-lead {
        color: rgba(30,41,59,.8);
    }

    .og-media {
        background: rgba(241,245,249,.7);
        border-color: rgba(100,116,139,.3);
    }

    .og-media-hint {
        color: rgba(30,41,59,.6);
    }

    .og-card {
        background: rgba(248,250,252,.95);
        border-color: rgba(100,116,139,.2);
        color: #334155;
    }

    .og-list, .og-steps {
        color: rgba(30,41,59,.85);
    }

    .og-note {
        background: rgba(59,130,246,.1);
        color: #1e40af;
    }

    .og-table th, .og-table td {
        border-color: rgba(100,116,139,.2);
        color: #334155;
    }

    .og-table th {
        background: rgba(241,245,249,.8);
    }

    .og-prompt {
        background: rgba(248,250,252,.95);
    }

    .og-prompt-body {
        color: #334155;
    }

    .og-back-to-top {
        background: rgba(255,255,255,.9);
        border-color: rgba(59,130,246,.5);
        color: #334155;
    }

        .og-back-to-top:hover {
            background: rgba(59,130,246,.15);
        }
}

.og-sheet-table {
    overflow-x: auto;
}

.og-table-compact th,
.og-table-compact td {
    padding: .45rem .7rem;
    white-space: nowrap;
}

.og-step .og-card {
    margin-bottom: 1rem;
}

/* 只縮緊 Sheet 解析結果區塊的間距（不動其他卡片） */
.og-step #sheetParsedCard.og-card {
    padding: 12px 14px;
    margin: 10px 0 12px;
}

.og-step #sheetParsedCard .og-table {
    margin: 8px 0 0;
}

/* SheetRuleTable 分頁區塊間距優化 */
.og-sheet-section {
    margin: 16px 0 0 0;
}

.og-sheet-title {
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 1rem;
}

.og-sheet-header {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 700;
}

.og-sheet-table .og-table {
    margin-top: 0.5rem;
}

.works-lightbox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 1400;
}
.works-lightbox-backdrop.show {
    opacity: 1;
    visibility: visible;
}

.works-lightbox {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    z-index: 1401;
    max-width: 90%;
    max-height: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.18s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}
.works-lightbox.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.works-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(2, 6, 23, 0.45);
}

.works-lightbox-close {
    position: fixed;
    right: 6%;
    top: 6%;
    z-index: 1402;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 標籤樣式 */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5, #9333ea);
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .badge:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }

/* 封面圖片樣式 */
.media-item img {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.media-item figcaption {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-top: 8px;
}

/* 範例影片樣式 */
.media-video .video-responsive {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    margin-top: 16px;
}

.media-video figcaption {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    text-align: center;
    margin-top: 8px;
}

/* 重新設計多媒體區 */
.og-media-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 16px;
}

.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 封面與範例影片的樣式 */
.media-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
}

    .media-item img {
        max-width: 100%;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    }

.media-video .video-responsive {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.media-caption {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 8px;
}

/* 作者與數據的樣式 */
.author-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 16px;
}

.author-name {
    font-weight: 700;
    color: #1f2937;
}

.author-stats {
    font-weight: 600;
    color: #6b7280;
}

.external-link {
    margin-top: 16px;
    text-align: center;
}

/* ===== Step 0 總覽與需求 - 重新設計 ===== */
.og-overview-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    margin-top: 16px;
}

@media (max-width: 768px) {
    .og-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* 左側：作者資訊區 */
.og-overview-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.og-author-card {
    background: rgba(15,23,42,.45);
    border: 1px solid rgba(148,163,184,.2);
    border-radius: 14px;
    padding: 16px;
}

.og-author-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.og-author-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.og-author-value {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.og-author-stats {
    display: flex;
    gap: 16px;
}

.og-stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,.7);
}

    .og-stat-item svg {
        opacity: 0.7;
    }

.og-stat-like {
    color: #f472b6;
}

    .og-stat-like svg {
        color: #f472b6;
        opacity: 1;
    }

/* 標籤區 */
.og-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.og-tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, rgba(79,70,229,.8), rgba(147,51,234,.8));
    border-radius: 20px;
    border: 1px solid rgba(147,51,234,.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

    .og-tag:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(147,51,234,.3);
    }

/* 外部連結按鈕 */
.og-external-link {
    margin-top: 4px;
}

.og-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(56,189,248,.5);
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.15s ease;
}

    .og-btn-outline:hover {
        background: rgba(56,189,248,.15);
        border-color: rgba(56,189,248,.8);
    }

/* 右側：媒體區 */
.og-overview-media {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.og-video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

    .og-video-wrapper iframe {
        width: 100%;
        height: 100%;
        border: 0;
    }

.og-cover-img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.og-media-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    text-align: center;
}

/* 白天模式適配 */
@media (prefers-color-scheme: light) {
    .og-author-card {
        background: rgba(241,245,249,.9);
        border-color: rgba(100,116,139,.2);
    }

    .og-author-label {
        color: rgba(30,41,59,.5);
    }

    .og-author-value {
        color: #1e293b;
    }

    .og-stat-item {
        color: rgba(30,41,59,.7);
    }

    .og-media-label {
        color: rgba(30,41,59,.6);
    }

    .og-btn-outline {
        color: #1e40af;
        border-color: rgba(59,130,246,.5);
    }

        .og-btn-outline:hover {
            background: rgba(59,130,246,.1);
        }
}

/* 作者專屬操作按鈕 */
.og-author-actions {
    margin-top: 12px; /* 若需要不同間距可在 view 調整 */
    display: flex;
    gap: 8px;
    align-items: center;
}
    /* 針對作者區塊內的 og-btn-outline 統一尺寸與對齊 */
    .og-author-actions .og-btn-outline {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px; /* 與你想要的按鈕內距一致 */
        font-size: 13px; /* 統一字級 */
        line-height: 1; /* 避免高度不一致 */
        height: 36px; /* 固定高度讓 button 與 a 一致 */
        min-width: 64px; /* 視需要可調 */
        border-radius: 8px;
        box-sizing: border-box;
        text-decoration: none;
    }

        /* 細微調整：把 svg 與文字間距交由 CSS 控制（移除元素內聯 margin） */
        .og-author-actions .og-btn-outline svg {
            margin-right: 6px;
            flex: none;
        }
.og-btn-danger {
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, .5) !important;
    background: transparent;
}

    .og-btn-danger:hover {
        background: rgba(239, 68, 68, .15) !important;
        border-color: rgba(239, 68, 68, .8) !important;
    }

@media (prefers-color-scheme: light) {
    .og-btn-danger {
        color: #dc2626 !important;
        border-color: rgba(220, 38, 38, .5) !important;
    }

        .og-btn-danger:hover {
            background: rgba(220, 38, 38, .1) !important;
        }
}

/* ===== 互動式 Prompt 產生器（Step 0）===== */
.og-builder-desc {
    margin: 0 0 1rem 0;
    font-size: .93rem;
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}

.og-builder {
    display: grid;
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.og-builder-field {
    display: grid;
    gap: .35rem;
}

.og-builder-label {
    font-size: .88rem;
    font-weight: 700;
    color: rgba(255,255,255,.75);
}

.og-builder-input,
.og-builder-textarea {
    width: 100%;
    border: 1px solid rgba(148,163,184,.3);
    border-radius: 9px;
    padding: .55rem .75rem;
    background: rgba(2,6,23,.45);
    color: #fff;
    font-size: .95rem;
    box-sizing: border-box;
    transition: border-color .15s ease;
}

.og-builder-input:focus,
.og-builder-textarea:focus {
    outline: none;
    border-color: rgba(56,189,248,.7);
    box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}

.og-builder-input::placeholder,
.og-builder-textarea::placeholder {
    color: rgba(255,255,255,.3);
}

.og-builder-textarea {
    resize: vertical;
    font-family: inherit;
}

.og-builder-drive-link {
    display: none;
}

.og-builder-check {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    font-size: .92rem;
    color: rgba(255,255,255,.75);
    user-select: none;
}

.og-builder-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* 輸出區 */
.og-builder-output {
    border: 1px solid rgba(56,189,248,.35);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(2,6,23,.45);
}

.og-builder-output-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem .85rem;
    background: rgba(56,189,248,.1);
    border-bottom: 1px solid rgba(56,189,248,.2);
}

.og-builder-output-title {
    font-size: .88rem;
    font-weight: 700;
    color: rgba(56,189,248,.9);
}

.og-builder-result {
    padding: .9rem;
    min-height: 80px;
}

.og-builder-placeholder {
    color: rgba(255,255,255,.3);
    font-size: .9rem;
    font-style: italic;
}

.og-builder-pre {
    margin: 0;
    padding: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: .93rem;
    line-height: 1.75;
    color: rgba(255,255,255,.85);
}

/* 白天模式 */
@media (prefers-color-scheme: light) {
    .og-builder-desc {
        color: rgba(30,41,59,.65);
    }

    .og-builder-label {
        color: rgba(30,41,59,.75);
    }

    .og-builder-input,
    .og-builder-textarea {
        background: #fff;
        color: #1e293b;
        border-color: rgba(100,116,139,.3);
    }

    .og-builder-input::placeholder,
    .og-builder-textarea::placeholder {
        color: rgba(30,41,59,.35);
    }

    .og-builder-check {
        color: rgba(30,41,59,.75);
    }

    .og-builder-output {
        background: rgba(241,245,249,.9);
        border-color: rgba(59,130,246,.35);
    }

    .og-builder-output-bar {
        background: rgba(59,130,246,.08);
        border-bottom-color: rgba(59,130,246,.18);
    }

    .og-builder-output-title {
        color: #2563eb;
    }

    .og-builder-placeholder {
        color: rgba(30,41,59,.35);
    }

    .og-builder-pre {
        color: #1e293b;
    }
}

/* 互動按鈕區塊 */
.og-interaction-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.og-btn-interact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(148,163,184,.25);
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.og-btn-interact:hover {
    background: rgba(255,255,255,.15);
    border-color: rgba(148,163,184,.4);
    transform: translateY(-1px);
}

.og-btn-interact.is-active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.5);
    color: #f87171;
}

.og-btn-interact.btn-fav.is-active {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.5);
    color: #fbbf24;
}

.og-btn-interact.btn-follow.is-active {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.5);
    color: #4ade80;
}

.og-btn-interact svg {
    width: 16px;
    height: 16px;
}

/* 作者連結 */
.og-author-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.15s ease;
}

.og-author-link:hover {
    color: rgba(56,189,248,.9);
    text-decoration: underline;
}

/* 白天模式適配 */
@media (prefers-color-scheme: light) {
    .og-btn-interact {
        color: #374151;
        background: rgba(0,0,0,.04);
        border-color: rgba(100,116,139,.25);
    }

    .og-btn-interact:hover {
        background: rgba(0,0,0,.08);
    }

    .og-btn-interact.is-active {
        background: rgba(239, 68, 68, 0.1);
        color: #dc2626;
    }

    .og-btn-interact.btn-fav.is-active {
        background: rgba(245, 158, 11, 0.1);
        color: #d97706;
    }

    .og-btn-interact.btn-follow.is-active {
        background: rgba(34, 197, 94, 0.1);
        color: #16a34a;
    }

    .og-author-link {
        color: #1e293b;
    }

    .og-author-link:hover {
        color: #2563eb;
    }
}

/* ========== 教學影片 ========== */
.hero-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.hero-video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

:root[data-theme="dark"] .hero-video-wrapper {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}