/* =====================================================================
   SPARK 前台共用 UI 元件 CSS
   ---------------------------------------------------------------------
   抽 SPARK 前台跨頁面重複出現的 UI 元素到此 — view 內 inline style 改
   引用這些 class，避免同樣的 gradient/border-radius 寫在 5 個地方。

   命名規範：
   - .spark-btn-*       — 按鈕系列
   - .spark-input-*     — 輸入元素系列
   - .spark-card-*      — 卡片系列
   - is-* / has-* / on-* — 狀態 modifier (e.g. .spark-btn-primary.is-block)

   要修改某元件全站樣式時，改這份檔案就好；不要回到各 view 自己改一份。
   ===================================================================== */


/* ---------- Primary CTA 按鈕（紫漸層 pill 風）---------- */
.spark-btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(90deg, #394EF4 0%, #6B45DA 50%, #C073EE 100%);
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: opacity .15s ease, transform .15s ease;
    font-family: inherit;
}
.spark-btn-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    opacity: .92;
    text-decoration: none;
}
.spark-btn-primary:disabled,
.spark-btn-primary.is-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}
/* full-width variant — 表單裡常用 */
.spark-btn-primary.is-block {
    display: block;
    width: 100%;
    padding: 14px;
}

/* ---------- 下劃線 input（auth / creator apply / 自家表單統一）---------- */
.spark-input-line {
    width: 100% !important;
    padding: 10px 0 !important;
    font-size: 15px;
    color: #273142;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid #E3E1ED !important;
    border-radius: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.5;
    font-family: inherit;
}
.spark-input-line::placeholder { color: #797889; }
.spark-input-line:focus { border-bottom-color: #6B45DA !important; }

/* ---------- 上傳檔案 trigger（看起來像 input、實際 hide native picker）----------
   font-size 與 .spark-input-line 對齊（PM 觀察上傳欄字比其他欄小）— Claudia 2026-06-02
*/
.spark-input-file {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #797889;
    border-bottom: 1px solid #E3E1ED;
    cursor: pointer;
    position: relative;
}
.spark-input-file.has-value { color: #273142; }
.spark-input-file::after {
    content: "⬆";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #797889;
    font-size: 12px;
}
.spark-input-file input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}


/* ---------- Secondary 文字 link 按鈕（紫字無框）---------- */
.spark-btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 0;
    padding: 0;
    color: #6B45DA;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: color .15s ease;
}
.spark-btn-text:hover { color: #394EF4; text-decoration: none; }


/* ---------- 表單欄位：標籤上方 + 圓角 input（checkout / new-product / settings 共用）---------- */
.spark-field { margin-bottom: 20px; }
.spark-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #273142;
}
.spark-field-label .req { color: #E5494B; margin-left: 2px; }
.spark-input,
.spark-textarea {
    width: 100% !important;
    height: 45px;
    padding: 10px 14px !important;
    font-size: 13px;
    color: #273142;
    background: #fff !important;
    border: 1px solid #E3E1ED !important;
    border-radius: 6px !important;
    outline: 0 !important;
    box-shadow: none !important;
    line-height: 1.5;
    font-family: inherit;
}
.spark-textarea { height: auto; min-height: 100px; resize: vertical; }
.spark-input::placeholder,
.spark-textarea::placeholder { color: #A0A0B6; }
.spark-input:focus,
.spark-textarea:focus { border-color: #6B45DA !important; }

/* histudy 全域 input[type=checkbox] {opacity:0;position:absolute} 必須 override */
.spark-checkbox {
    opacity: 1 !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #6B45DA;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}
.spark-checkbox-label {
    font-size: 13px;
    color: #273142;
    cursor: pointer;
    vertical-align: middle;
    padding-left: 0 !important;
}
.spark-checkbox-label::before,
.spark-checkbox-label::after { content: none !important; }
.spark-radio {
    opacity: 1 !important;
    position: static !important;
    width: 16px !important;
    height: 16px !important;
    accent-color: #6B45DA;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
}

/* ---------- Card / Panel（checkout 兩欄、profile sidebar 等）---------- */
.spark-panel {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(60, 50, 120, 0.08);
}
.spark-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #273142;
    margin: 0 0 20px;
}
.spark-panel-divider {
    height: 1px;
    background: #ECEAF4;
    margin: 16px 0;
    border: 0;
}


/* ---------- Order Summary（checkout 右側總表、订单列表均可重用）---------- */
.spark-order-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    color: #273142;
}
.spark-order-summary-row.is-header {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 1px solid #ECEAF4;
    margin-bottom: 8px;
}
.spark-order-summary-row.is-total {
    font-size: 18px;
    font-weight: 700;
    border-top: 1px solid #ECEAF4;
    margin-top: 8px;
    padding-top: 14px;
}


/* ---------- Pagination（products list / orders / blog 共用）---------- */
.spark-pagination { display: inline-flex; gap: 6px; align-items: center; padding: 0; }
.spark-pagination li { list-style: none; }
.spark-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #E3E1ED;
    color: #273142;
    font-size: 13px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.spark-pagination a:hover { border-color: #6B45DA; color: #6B45DA; }
.spark-pagination li.active a {
    background: linear-gradient(90deg, #394EF4 0%, #6B45DA 100%);
    color: #fff;
    border-color: transparent;
}


/* ---------- Status pill（訂單 / KYC 狀態通用）---------- */
.spark-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.spark-pill.is-pending  { background: #FFF1D6; color: #C9821C; }
.spark-pill.is-paid     { background: #D6F5E3; color: #1E8A4F; }
.spark-pill.is-shipped  { background: #DDE5FF; color: #394EF4; }
.spark-pill.is-done     { background: #E8E3FA; color: #6B45DA; }
.spark-pill.is-canceled { background: #F2EDF7; color: #897CA8; }
.spark-pill.is-refunded { background: #FFE1E1; color: #C73A3A; }
/* 退款申請中 — eric 截圖：粉底紅字 pill */
.spark-pill.is-refunding { background: #FFE1E1; color: #E63946; font-weight: 600; }

/* 訂單卡 — 申請退款按鈕（Figma 26:215 light amber pill） */
.spark-refund-btn {
    display: block;
    width: 100%;
    background: #FFF1D6;
    color: #B7791F;
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease;
}
.spark-refund-btn:hover { background: #FFE3A8; color: #8A5A0E; }

/* ---------- Chip multi-select（上架/編輯商品 平台/功能/標籤 共用） ---------- */
.spark-chipselect {
    border: 1px solid #E3E3EE;
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    min-height: 46px;
}
.spark-chipselect-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}
.spark-chipselect-chips:empty { margin-bottom: 0; }
.spark-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EEF1FF;
    color: #2A5BFE;
    font-size: 13px;
    padding: 4px 8px 4px 12px;
    border-radius: 16px;
    font-weight: 500;
}
.spark-chip-x {
    background: none;
    border: 0;
    color: #2A5BFE;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: .7;
}
.spark-chip-x:hover { opacity: 1; }
.spark-chipselect-picker {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: #6B7280;
    padding: 4px 0;
    outline: none;
}
.spark-chipselect-picker option:disabled { color: #c8c8d0; }

/* ---------- Rich text editor 容器（Quill） ---------- */
.spark-rte-wrap { background: #fff; border-radius: 10px; clear: both; }
.spark-rte-wrap .ql-toolbar.ql-snow {
    border: 1px solid #E3E3EE;
    border-bottom: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: #FAFAFC;
}
.spark-rte-wrap .ql-container.ql-snow {
    border: 1px solid #E3E3EE;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    min-height: 180px;
    font-size: 14px;
    background: #fff;
}
.spark-rte-wrap .ql-editor { min-height: 180px; }

/* ---------- 縮圖 上傳 ---------- */
.spark-thumb-upload { display: flex; gap: 16px; align-items: flex-start; }
.spark-thumb-preview {
    width: 200px; height: 125px;
    background: #F4F4F8; border: 1px dashed #C8C8D0;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.spark-thumb-preview img { width: 100%; height: 100%; object-fit: cover; }
.spark-thumb-placeholder { color: #898E99; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.spark-thumb-controls { display: flex; flex-direction: column; gap: 6px; }
.spark-thumb-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: #2A5BFE; color: #fff;
    padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background-color .15s ease;
}
.spark-thumb-btn:hover { background: #1E4AE0; color: #fff; }

/* ---------- 新增/編輯商品 表單按鈕統一規格 ---------- */
.spark-form-btn-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spark-form-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, opacity .15s ease;
    white-space: nowrap;
}
.spark-form-btn:hover { text-decoration: none; opacity: .92; }
.spark-form-btn.is-primary { background: #2A5BFE; color: #fff; }
.spark-form-btn.is-primary:hover { background: #1E4AE0; color: #fff; }
.spark-form-btn.is-ghost   { background: #F4F4F8; color: #273142; border-color: #E3E3EE; }
.spark-form-btn.is-ghost:hover { background: #EAEAEF; color: #273142; }
.spark-form-btn.is-success { background: #DDF7E6; color: #1F8A4C; }
.spark-form-btn.is-success:hover { background: #C8F0D5; color: #1F8A4C; }
.spark-form-btn.is-warning { background: #FFE6CC; color: #B7861F; }
.spark-form-btn.is-warning:hover { background: #FFD9AC; color: #B7861F; }
.spark-form-btn.is-danger  { background: #FCE9EC; color: #D9374E; }
.spark-form-btn.is-danger:hover { background: #F8D5DA; color: #D9374E; }


/* ---------- 商品詳細：未購買鎖定 UI（Figma product-detail 89:211）---------- */
.spark-content-lock {
    position: relative;
    margin: 8px 0 0;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(246, 235, 252, 0.5);
    min-height: 480px;
}
.spark-content-lock-blurred {
    filter: blur(7px);
    pointer-events: none;
    user-select: none;
    min-height: 480px;
    padding: 24px 28px;
    color: #475066;
    line-height: 1.8;
    max-height: 480px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
            mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 70%, rgba(0,0,0,0) 100%);
}
.spark-content-lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.55) 35%, rgba(255,255,255,0.85) 65%, rgba(255,255,255,0.55) 100%);
}
.spark-content-lock-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    background: linear-gradient(90deg, rgba(215, 108, 146, 1) 0%, rgba(130, 2, 128, 1) 100%);
    box-shadow: 0 8px 24px rgba(130, 2, 128, 0.25);
    transition: opacity .15s ease, transform .15s ease;
    cursor: pointer;
}
.spark-content-lock-cta:hover { color: #fff; opacity: .92; transform: translateY(-1px); text-decoration: none; }
.spark-content-lock-cta svg { flex-shrink: 0; }
.spark-content-lock-badge {
    width: 130px;
    height: auto;
    display: block;
    margin: 0 auto 6px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.18));
}
.spark-content-lock-desc {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(90deg, rgba(216, 108, 146, 1) 0%, rgba(129, 2, 128, 1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== Product detail page (Figma 89:211) — bg 抄 histudy .rbt-page-banner-wrapper ===== */
.spark-product-page {
    position: relative;
    padding: 60px 0 80px;
    min-height: 70vh;
    overflow: hidden;
    background: #fff;
}
.spark-product-page::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 560px;
    z-index: 0;
    background: linear-gradient(270deg, #B966E7 0%, #2F57EF 100%);
}
.spark-product-page::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 560px;
    z-index: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.45) 0%, rgba(255,255,255,0.65) 60%, rgba(255,255,255,1) 100%);
    pointer-events: none;
}
.spark-product-page > .container { position: relative; z-index: 1; }
.spark-product-flash {
    border-radius: 10px;
    margin-bottom: 16px;
}
.spark-product-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(57, 78, 244, 0.08);
    padding: 36px 40px 44px;
    max-width: 1040px;
    margin: 0 auto;
}
.spark-product-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 16px;
}
.spark-cat-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #F1E6FC;
    color: #B966E7;
    font-size: 12px;
    font-weight: 500;
    border-radius: 40px;
    letter-spacing: 0.5px;
}
.spark-product-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #1E1E2C;
    margin: 0 0 24px;
    line-height: 1.3;
}
.spark-product-owner-banner,
.spark-product-purchased-banner {
    display: block;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    margin: 0 auto 20px;
    max-width: 360px;
    font-size: 14px;
    font-weight: 600;
}
.spark-product-owner-banner {
    background: #FFF6E1;
    color: #B7861F;
    border: 1px solid #FFE3A1;
}
.spark-product-purchased-banner {
    background: #E6F8EE;
    color: #1F8A4C;
    border: 1px solid #A6E2BC;
}
.spark-product-content {
    color: #273142;
    line-height: 1.7;
    font-size: 15px;
}
.spark-product-content img { max-width: 100%; height: auto; border-radius: 10px; }
.spark-product-content h2,
.spark-product-content h3,
.spark-product-content h4 { margin-top: 24px; }

/* ===== Settings 個人資料管理頁 sub-banner（編輯頭像 + 封面圖） ===== */
.spark-settings-subbanner {
    position: relative;
    border-radius: 14px;
    overflow: visible;            /* 讓 avatar 能伸出底邊 */
    margin-bottom: 80px;          /* 留 avatar 突出空間 */
    height: 180px;
    background: linear-gradient(90deg, #4B2D9B 0%, #6B45DA 50%, #B57FF0 100%);
}
/* 手機版：subbanner 寬度硬鎖住 parent，cover img 也跟著夾死 — ClickUp 86exrg24a
   原本 subbanner 沒寬度限制，加上 form .row--15 的 -15px margin 與
   .rbt-dashboard-content 內 padding 互動，會超出視口；給 !important 確保鎖死。 */
@media (max-width: 768px) {
    .spark-settings-subbanner {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        height: 140px;
        overflow: hidden;
        /* avatar 用 transform/絕對定位往下溢出；mobile overflow:hidden 會剪掉超出部分，
           所以也要把 avatar-wrap 改 z-index 高 + bottom 在 banner 內 */
    }
    .spark-settings-subbanner-cover {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* avatar 改縮一點且整顆放在 banner 內，不再 bottom: -48px 溢出 */
    .spark-settings-subbanner-avatar-wrap {
        bottom: 8px !important;
        width: 72px !important;
        height: 72px !important;
    }
    .spark-settings-subbanner-avatar {
        width: 72px !important;
        height: 72px !important;
        min-width: 72px !important;
        min-height: 72px !important;
    }
    /* 自身 margin-bottom 同步減少（avatar 不再外凸） */
    .spark-settings-subbanner { margin-bottom: 24px !important; }
}
.spark-settings-subbanner-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    z-index: 0;
}
.spark-settings-subbanner-inner {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Avatar 從 banner 左下半疊出 */
.spark-settings-subbanner-avatar-wrap {
    position: absolute;
    left: 24px;
    bottom: -48px;
    width: 96px;
    height: 96px;
    z-index: 3;
}
.spark-settings-subbanner-avatar {
    width: 96px !important;
    height: 96px !important;
    min-width: 96px !important;
    min-height: 96px !important;
    border-radius: 50% !important;
    border: 4px solid #fff !important;
    object-fit: cover;
    background: #6B45DA;
    color: #fff !important;
    font-size: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 相機 icon 在 avatar 右下角；form/input 純粹 hidden 不佔位 */
.spark-settings-subbanner-avatar-wrap form { display: contents; }
.spark-settings-subbanner-avatar-edit {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #6B45DA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid #fff;
    font-size: 14px;
    z-index: 4;
    transition: background .15s ease;
}
.spark-settings-subbanner-avatar-edit:hover { background: #5A3DBA; }

/* Edit Cover Photo 按鈕 — banner 右下角 */
.spark-settings-subbanner-inner > form {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
}
.spark-settings-subbanner-cover-edit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}
.spark-settings-subbanner-cover-edit:hover { background: rgba(0,0,0,0.8); color: #fff; }

/* ===== Dashboard Hero (全 dashboard 頁面共用、簡化版) ===== */
.spark-dashboard-hero {
    position: relative;
    margin: 24px auto;
    max-width: 1280px;
    background: linear-gradient(90deg, #4B2D9B 0%, #6B45DA 40%, #9560E4 75%, #B57FF0 100%);
    border-radius: 18px;
    padding: 32px 40px;
    color: #fff;
    overflow: hidden;
    aspect-ratio: 4 / 1;
    min-height: 220px;
}
/* 之後 user 上傳 cover 圖會放這 — 純 <img> 元素而非 background-image，方便獨立替換 */
.spark-dashboard-hero-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* user 上傳 cover 後就不要再加 overlay 蓋住（per Eric 要求） */
.spark-dashboard-hero-inner {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 24px;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}
.spark-dashboard-hero-user {
    display: flex;
    align-items: center;
    gap: 18px;
}
.spark-dashboard-hero-avatar {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    font-size: 32px !important;
    border: 3px solid rgba(255,255,255,0.5) !important;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
}
.spark-dashboard-hero-avatar-img {
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.spark-dashboard-hero-meta { display: flex; flex-direction: column; gap: 6px; }
.spark-dashboard-hero-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}
.spark-dashboard-hero-reviews {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFB400;
    font-size: 14px;
}
.spark-dashboard-hero-reviews-count {
    color: rgba(255,255,255,0.9);
    font-size: 13px;
    margin-left: 4px;
}
.spark-dashboard-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2A5BFE;
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .15s ease, background-color .15s ease;
    flex-shrink: 0;
}
.spark-dashboard-hero-cta:hover { color: #fff; background: #1E4AE0; transform: translateY(-1px); text-decoration: none; }
.spark-dashboard-hero-cta i { font-size: 13px; }

@media (max-width: 768px) {
    /* 只拿掉 aspect-ratio（避免窄螢幕被撐到 height*ratio 溢出 viewport），
       margin 保留 `24px auto` 預設 → hero 外緣 = container 內容區 =
       與下方 sidebar/白底資訊外框同寬。 */
    .spark-dashboard-hero {
        padding: 24px 20px;
        aspect-ratio: auto !important;
        height: 180px;
        min-height: 0;
        box-sizing: border-box;
    }
    .spark-dashboard-hero-cover { max-width: 100% !important; }
    .spark-dashboard-hero-inner { left: 20px; right: 20px; bottom: 16px; }
    .spark-dashboard-hero-name { font-size: 18px; }
    .spark-dashboard-hero-avatar { width: 64px !important; height: 64px !important; min-width: 64px !important; min-height: 64px !important; font-size: 26px !important; }
}

/* ===== Creator 「我的商品」卡片（Figma 26:215） ===== */
.spark-creator-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(57, 78, 244, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.spark-creator-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(57, 78, 244, 0.12);
}
.spark-creator-card-img {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.spark-creator-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.spark-creator-card-status {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}
.spark-creator-card-body {
    padding: 18px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.spark-creator-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
    color: #1E1E2C;
    /* 固定 2 行高度讓多卡片標題對齊；超過 2 行 ellipsis 截斷 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.4em * 2);
}
.spark-creator-card-title a {
    color: inherit;
    text-decoration: none;
}
.spark-creator-card-title a:hover { color: #6B45DA; }
.spark-creator-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 10px;
}
.spark-creator-card-rating .rating { color: #FFB400; font-size: 12px; }
.spark-creator-card-rating-count { color: #797889; font-size: 12px; }
.spark-creator-card-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: #6B7385;
}
.spark-creator-card-meta li {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.spark-creator-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F1EFF7;
}
.spark-creator-card-price {
    font-size: 16px;
    font-weight: 700;
    color: #6B45DA;
}
.spark-creator-card-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #F4F4F8;
    color: #273142;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.spark-creator-card-edit:hover {
    background: linear-gradient(90deg, #394EF4, #B966E7);
    color: #fff;
    text-decoration: none;
}
/* 卡片內 review 右側狀態 toggle pill button (Figma 26:215) */
.spark-creator-status-btn {
    display: inline-block;
    padding: 3px 12px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: opacity .15s ease;
}
.spark-creator-status-btn:hover { opacity: .85; }
.spark-creator-status-btn.is-publish { background: #DDF7E6; color: #1F8A4C; }
.spark-creator-status-btn.is-unpublish { background: #FCE9EC; color: #D9374E; }
.spark-creator-status-btn.is-draft { background: #FFF1D0; color: #B7861F; }

.spark-creator-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #F1EFF7;
}
.spark-creator-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: #F4F4F8;
    color: #6B7385;
    font-size: 12px;
    font-weight: 600;
    border: 0;
    border-radius: 20px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}
.spark-creator-action-btn:hover { background: #E9E7F5; color: #6B45DA; }
.spark-creator-action-btn.is-publish:hover { background: #DDF7E6; color: #1F8A4C; }
.spark-creator-action-btn.is-unpublish:hover { background: #FFE6CC; color: #B7861F; }
.spark-creator-action-btn.is-delete { padding: 5px 10px; }
.spark-creator-action-btn.is-delete:hover { background: #FCE9EC; color: #D9374E; }

/* ===== Profile page letter avatar (沒上傳大頭照時 fallback) ===== */
.spark-letter-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 80px;
    min-height: 80px;
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #394EF4 0%, #B966E7 100%);
    border-radius: 50%;
    line-height: 1;
    text-transform: uppercase;
}

/* ===== Author bio (白卡片外、白底區，Figma 89:211) ===== */
.spark-author {
    display: flex;
    gap: 16px;
    align-items: center;
    max-width: 1040px;
    margin: 18px auto 0;
    padding: 18px 4px;
}
.spark-author-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
}
.spark-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.spark-author-body { flex: 1; min-width: 0; }
.spark-author-name {
    display: block;
    color: #1E1E2C;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.3;
}
.spark-author-name:hover { color: #B966E7; }
.spark-author-subtitle {
    color: #797889;
    font-size: 13px;
    margin-top: 2px;
    margin-bottom: 8px;
}
.spark-author-verified-text {
    color: #6B45DA;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.spark-author-bio {
    margin: 0 0 10px;
    color: #6B7385;
    font-size: 14px;
    line-height: 1.65;
    font-style: italic;
}
.spark-author-socials {
    margin-top: 10px;
}
.spark-social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.spark-social-icon {
    color: #6B7385;
    font-size: 18px;
    transition: color .15s ease, transform .15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
}
.spark-social-icon:hover {
    color: #394EF4;
    transform: translateY(-1px);
}
.spark-social-icon svg { display: block; }

/* ===== Product list filter overrides — 對齊模板，4 filter 平均填滿（template 預設 flex-end + 20% = 4 filter 會擠右）===== */
.spark-commodity-filter-top .default-exp-wrapper { border-top: 0; }
.spark-commodity-filter-top .default-exp-wrapper .filter-inner {
    justify-content: flex-start;
}
.spark-commodity-filter-top .default-exp-wrapper .filter-inner .filter-select-option {
    flex-basis: 25%;
}
@media (max-width: 1199px) { .spark-commodity-filter-top .default-exp-wrapper .filter-inner .filter-select-option { flex-basis: 33.33%; } }
@media (max-width: 991px)  { .spark-commodity-filter-top .default-exp-wrapper .filter-inner .filter-select-option { flex-basis: 50%; } }
@media (max-width: 575px)  { .spark-commodity-filter-top .default-exp-wrapper .filter-inner .filter-select-option { flex-basis: 100%; } }

/* 價格範圍按鈕：模板用 a.rbt-btn 套樣式，我們 form 要用 <button>，補上同款 */
.spark-commodity-filter-top .price__output--wrap .price--filter button.rbt-btn {
    padding: 6px 10px;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 6px;
    line-height: 16px;
    height: auto;
    white-space: nowrap;
}

/* ===== Product card 「POW 認證」徽章 (替代「已驗證」標籤) ===== */
.spark-card-pow-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 56px;
    height: 56px;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.18));
}
.spark-card-pow-badge img { width: 100%; height: 100%; object-fit: contain; }

/* ===== Tag pills row (白卡片外，置左) ===== */
.spark-tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    max-width: 1040px;
    margin: 24px auto 0;
}
.spark-tag-pill {
    display: inline-block;
    padding: 8px 18px;
    background: #F4F4F8;
    color: #273142;
    font-size: 13px;
    border-radius: 24px;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.spark-tag-pill:hover { background: #F1E6FC; color: #B966E7; text-decoration: none; }

/* ===== Review summary ===== */
.spark-section-heading {
    color: #1E1E2C;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 18px;
}
.spark-review-summary {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(57, 78, 244, 0.06);
    padding: 28px 32px;
    max-width: 1040px;
    margin: 36px auto 0;
}
.spark-review-empty { color: #797889; margin: 0; }
.spark-review-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 720px) {
    .spark-review-grid { grid-template-columns: 1fr; }
}
.spark-review-overall {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.spark-review-score {
    font-size: 56px;
    font-weight: 700;
    color: #FF7A1A;
    line-height: 1;
    margin-bottom: 8px;
}
.spark-review-stars { color: #FFB400; font-size: 18px; margin-bottom: 6px; }
.spark-review-stars svg { fill: #FFB400; }
.spark-review-label { color: #1E1E2C; font-weight: 600; font-size: 14px; }
.spark-review-count { color: #797889; font-size: 12px; margin-top: 2px; }
.spark-review-dist { display: flex; flex-direction: column; gap: 8px; }
.spark-review-dist-row {
    display: grid;
    grid-template-columns: 110px 1fr 48px 32px;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: #6B7385;
}
.spark-review-dist-stars { color: #FFB400; font-size: 12px; }
.spark-review-dist-bar {
    height: 6px;
    background: #F1EFF7;
    border-radius: 4px;
    overflow: hidden;
}
.spark-review-dist-fill {
    height: 100%;
    background: #FFB400;
    border-radius: 4px;
}
.spark-review-dist-pct { text-align: right; }
.spark-review-dist-count { text-align: right; color: #B0B3BD; }

/* Review form & banners */
.spark-review-form-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(57, 78, 244, 0.06);
    padding: 28px 32px;
    max-width: 1040px;
    margin: 24px auto 0;
}
.spark-review-banner {
    max-width: 1040px;
    margin: 24px auto 0;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 14px;
}
.spark-review-banner.is-info { background: #F5F0FE; color: #6B45DA; }
.spark-review-banner.is-muted { background: #F8F8FA; color: #6B7385; }

/* Featured reviews list */
.spark-featured-reviews {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(57, 78, 244, 0.06);
    padding: 28px 32px;
    max-width: 1040px;
    margin: 24px auto 0;
}
.spark-featured-review {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #EFEDF6;
}
.spark-featured-review:last-child { border-bottom: 0; }
.spark-featured-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
}
.spark-featured-body { flex: 1; min-width: 0; }
.spark-featured-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.spark-featured-name { color: #1E1E2C; font-weight: 600; font-size: 15px; }
.spark-featured-stars { color: #FFB400; font-size: 13px; }
.spark-featured-stars svg { fill: #FFB400; }
.spark-featured-text {
    color: #4B5161;
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 4px;
}
.spark-featured-time { color: #B0B3BD; font-size: 12px; }

/* Related products grids */
.spark-related-section {
    max-width: 1040px;
    margin: 40px auto 0;
}
.spark-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.spark-related-grid > .course-grid-3 { width: 100%; }
@media (max-width: 900px) {
    .spark-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .spark-related-grid { grid-template-columns: 1fr; }
}

/* =====================================================================
   需求懸賞（Bounty）— 列表 / 詳細 / 新增 共用樣式
   ===================================================================== */
.spark-bounty-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 60px 80px;
    font-family: Inter, "PingFang TC", "Noto Sans TC", sans-serif;
}
.spark-bounty-breadcrumb { color: #797889; font-size: 13px; margin-bottom: 24px; }
.spark-bounty-breadcrumb a { color: #797889; text-decoration: none; }
.spark-bounty-breadcrumb a:hover { color: #6B45DA; }
.spark-bounty-breadcrumb .sep { margin: 0 8px; }

.spark-bounty-search {
    max-width: 460px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    height: 44px;
    border: 1px solid #EAE8F3;
    border-radius: 30px;
    background: #fff;
    margin-bottom: 24px;
}
.spark-bounty-search input {
    flex: 1;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background: transparent !important;
    font-size: 13px;
    color: #273142;
}
.spark-bounty-search button { background: transparent; border: 0; color: #797889; cursor: pointer; }

.spark-bounty-cat-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.spark-bounty-cat-pill {
    padding: 8px 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #EAE8F3;
    color: #273142;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .15s ease;
}
.spark-bounty-cat-pill:hover { color: #6B45DA; border-color: #C073EE; }
.spark-bounty-cat-pill.active {
    background: linear-gradient(90deg, #394EF4 0%, #6B45DA 100%);
    color: #fff;
    border-color: transparent;
}

.spark-bounty-list { display: flex; flex-direction: column; gap: 16px; }
.spark-bounty-card {
    display: block;
    background: #fff;
    border: 1px solid #EFEDF8;
    border-radius: 14px;
    padding: 28px 32px;
    text-decoration: none;
    color: #273142;
    box-shadow: 0 1px 4px rgba(17,24,39,.04);
    transition: box-shadow .2s ease, transform .15s ease;
}
.spark-bounty-card:hover {
    box-shadow: 0 12px 28px rgba(57, 78, 244, .10);
    transform: translateY(-1px);
    color: #273142;
}
.spark-bounty-card-title { font-size: 18px; font-weight: 700; margin: 0 0 10px; color: #111827; }
.spark-bounty-card-read {
    font-size: 13px;
    font-weight: 600;
    color: #394EF4;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.spark-bounty-empty { text-align: center; padding: 60px 0; color: #797889; font-size: 14px; }
.spark-bounty-empty p { margin-bottom: 16px; }

.spark-bounty-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.spark-bounty-pagination a, .spark-bounty-pagination span {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #EAE8F3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #273142;
    font-size: 13px;
    font-weight: 600;
}
.spark-bounty-pagination a:hover { color: #6B45DA; border-color: #C073EE; }
.spark-bounty-pagination .active {
    background: linear-gradient(90deg, #394EF4 0%, #6B45DA 100%);
    color: #fff;
    border-color: transparent;
}
.spark-bounty-pagination .disabled { opacity: 0.35; cursor: not-allowed; }

/* ---- Detail ---- */
.spark-bounty-detail-wrap {
    background: linear-gradient(135deg, #DCE3FF 0%, #E9D5F5 50%, #FBDDE5 100%);
    padding: 40px 60px 80px;
}
.spark-bounty-detail-card {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 18px;
    padding: 48px 56px;
    box-shadow: 0 12px 40px rgba(17,24,39,.10);
    font-family: Inter, "PingFang TC", "Noto Sans TC", sans-serif;
}
.spark-bounty-detail-title {
    font-size: 30px;
    font-weight: 800;
    color: #111827;
    line-height: 1.3;
    margin: 0 0 20px;
    text-align: center;
}
.spark-bounty-detail-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #797889;
    padding-bottom: 20px;
    border-bottom: 1px solid #EEEEF4;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.spark-bounty-detail-meta .author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #273142;
}
.spark-bounty-detail-meta .author .avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #394EF4 0%, #6B45DA 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.spark-bounty-detail-meta .author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.spark-bounty-detail-meta .date::before { content: "📅"; margin-right: 4px; }
.spark-bounty-detail-meta .share {
    margin-left: auto;
    display: inline-flex;
    gap: 10px;
    color: #797889;
}
.spark-bounty-detail-meta .share a { color: #797889; }
.spark-bounty-detail-meta .share a:hover { color: #6B45DA; }
.spark-bounty-detail-tag {
    display: inline-block;
    background: #F3F4F6;
    color: #273142;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.spark-bounty-detail-body {
    font-size: 14px;
    color: #4B5063;
    line-height: 1.75;
    margin-bottom: 36px;
    white-space: pre-line;
}

.spark-bounty-comment-section { border-top: 1px solid #EEEEF4; padding-top: 28px; }
.spark-bounty-comment-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #111827; }
.spark-bounty-comment-input {
    width: 100%;
    min-height: 80px;
    padding: 12px 14px !important;
    border: 1px solid #EAE8F3 !important;
    border-radius: 10px !important;
    font-size: 13px;
    color: #273142;
    background: #fff !important;
    box-shadow: none !important;
    height: auto !important;
    resize: vertical;
}
.spark-bounty-comment-section .spark-btn-primary { margin-top: 14px; }

.spark-bounty-comments-count { font-size: 16px; font-weight: 700; margin: 36px 0 16px; color: #111827; }
.spark-bounty-comment {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #F5F4FA;
}
.spark-bounty-comment:last-child { border-bottom: 0; }
.spark-bounty-comment .avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, #C073EE 0%, #DB7093 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.spark-bounty-comment .avatar img { width: 100%; height: 100%; object-fit: cover; }
.spark-bounty-comment .author-name { font-size: 13px; font-weight: 700; color: #273142; }
.spark-bounty-comment .date { font-size: 11px; color: #797889; margin-bottom: 4px; }
.spark-bounty-comment .body { font-size: 13px; color: #4B5063; line-height: 1.7; white-space: pre-line; }

/* ---- New ---- */
/* ClickUp 86exrk459：card 寬度撐滿頁面（與麵包屑同寬），select 高度與 title input 一致 */
.spark-bounty-new-card {
    max-width: 100%;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #EFEDF8;
    border-radius: 18px;
    padding: 40px 48px;
    box-shadow: 0 1px 6px rgba(17,24,39,.04);
}
.spark-bounty-new-field { margin-bottom: 18px; }
/* input/textarea 對齊 .rbt-modern-select 的 bootstrap-select 按鈕視覺
   （height:50px、padding:10px 20px、border-radius:--radius、box-shadow:--shadow-1） */
.spark-bounty-new-card input[type="text"],
.spark-bounty-new-card textarea {
    width: 100%;
    border: 0 none !important;
    border-radius: var(--radius) !important;
    padding: 10px 20px !important;
    font-size: 16px;
    line-height: 28px;
    color: var(--color-body);
    background-color: var(--color-white) !important;
    box-shadow: var(--shadow-1) !important;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}
.spark-bounty-new-card input[type="text"] { height: 50px !important; }
.spark-bounty-new-card textarea { min-height: 320px; resize: vertical; }
/* 注意：select 已被 main.js 自動 selectpicker 轉換成 bootstrap-select
   wrapper，外觀直接走 .rbt-modern-select .bootstrap-select button.btn-light
   的全站規則（已經是「搜尋提示詞」/products 那種樣式），不用再覆寫。 */
.spark-bounty-new-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #394EF4 0%, #6B45DA 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px;
    cursor: pointer;
    margin-top: 24px;
}
.spark-bounty-new-submit:hover { opacity: .92; }

@media (max-width: 768px) {
    .spark-bounty-page { padding: 24px 16px 60px; }
    .spark-bounty-card { padding: 18px 18px; }
    .spark-bounty-card-title { font-size: 15px; }
    .spark-bounty-detail-wrap { padding: 24px 16px 60px; }
    .spark-bounty-detail-card { padding: 28px 22px; }
    .spark-bounty-detail-title { font-size: 22px; }
    .spark-bounty-new-card { padding: 28px 22px; }
}

/* =====================================================================
   公開個人區域展示頁 /u/{username}  — 橫幅 hero + Biography 卡
   ===================================================================== */
.spark-publicshow-page {
    /* 寬度對齊個人資料管理頁：套用 Bootstrap .container（view 已加 container class），
       不再自訂 980px 窄版；只保留上下間距，左右 / max-width 交給 .container */
    padding: 24px 0 80px;
    font-family: Inter, "PingFang TC", "Noto Sans TC", sans-serif;
}

.spark-publicshow-hero {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 1;
    min-height: 240px;
    margin-bottom: 36px;
    background: linear-gradient(120deg, #6FB5FF 0%, #8EC9FF 35%, #B6A5F0 70%, #C77AE3 100%);
    color: #fff;
    isolation: isolate;
}
.spark-publicshow-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
/* 底部漸層 scrim：確保頭貼 / 名稱在任意封面圖上都清楚可讀 */
.spark-publicshow-hero::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,.48) 0%, rgba(0,0,0,.14) 32%, rgba(0,0,0,0) 58%);
    pointer-events: none;
}
.spark-publicshow-hero-avatar-row {
    position: absolute;
    left: 32px; bottom: 26px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}
.spark-publicshow-hero-avatar {
    width: 76px; height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,.9);
    background: rgba(255,255,255,.2);
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 28px;
    box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.spark-publicshow-hero-avatar-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 8px rgba(0,0,0,.45);
}

.spark-publicshow-card {
    background: #fff;
    border: 1px solid #EFEDF8;
    border-radius: 14px;
    padding: 28px 32px;
    box-shadow: 0 1px 4px rgba(17,24,39,.04);
}
.spark-publicshow-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 16px;
}
.spark-publicshow-card-body {
    font-size: 14px;
    color: #4B5063;
    line-height: 1.75;
    margin: 0 0 20px;
    white-space: pre-line;
}
.spark-publicshow-socials {
    display: flex; gap: 10px; margin-bottom: 14px;
}
.spark-publicshow-socials a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #F3F4F6;
    color: #6B7280;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .15s ease, color .15s ease;
    text-decoration: none;
}
.spark-publicshow-socials a:hover { background: #6B45DA; color: #fff; }
.spark-publicshow-contact {
    display: flex; flex-wrap: wrap; gap: 16px;
    font-size: 13px;
    color: #4B5063;
}
.spark-publicshow-contact-item i { margin-right: 6px; color: #6B7280; }

@media (max-width: 768px) {
    .spark-publicshow-page { padding: 16px 16px 60px; }
    .spark-publicshow-hero { aspect-ratio: auto; min-height: 240px; }
    .spark-publicshow-hero-inner { padding: 24px 20px; }
    .spark-publicshow-hero-quote { max-width: 100%; }
    .spark-publicshow-card { padding: 22px 18px; }
}

