/**
 * Uni Wrap Editor Pro - 進階版引導式車衣編輯器樣式
 * 現代化蘋果風格設計
 * 
 * @package Uni_Paint_Simulator
 * @author Edwin Lin
 */

/* ============================================
   CSS 變數定義
   ============================================ */
:root {
    --wep-bg-dark: #1a1a1a;
    --wep-bg-card: #f5f6f8;
    --wep-bg-input: #ffffff;
    --wep-accent: #1a1a1a;
    --wep-accent-hover: #333333;
    --wep-text-primary: #1a1a1a;
    --wep-text-secondary: #666666;
    --wep-text-muted: #999999;
    --wep-text-light: #ffffff;
    --wep-border: rgba(0, 0, 0, 0.08);
    --wep-border-light: rgba(0, 0, 0, 0.12);
    --wep-action-bg: #e8eef2;
    --wep-radius-sm: 8px;
    --wep-radius-md: 12px;
    --wep-radius-lg: 18px;
    --wep-radius-xl: 24px;
    --wep-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --wep-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --wep-shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
    --wep-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --wep-transition-fast: all 0.15s ease;
}

/* ============================================
   全域重置
   ============================================ */
.uni-wrap-pro,
.uni-wrap-pro *,
.uni-wrap-pro *::before,
.uni-wrap-pro *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.uni-wrap-pro-container {
    font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', 'Microsoft JhengHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}


/* ============================================
   主容器 - 引導式入口
   ============================================ */
.uni-wrap-pro {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: #ffffff !important;
    background-image: none !important;
    min-height: 95vh;
    min-height: 100dvh;
    overflow: hidden;
}

/* ============================================
   第一階段容器 - 電腦版左右分欄
   ============================================ */
.wep-entry {
    display: flex;
    flex-direction: column;
    width: 100%;
}

@media (min-width: 768px) {
    .wep-entry {
        flex-direction: row;
        height: calc(95vh - 80px);
        max-height: none;
        gap: 24px;
        padding: 24px;
    }
}

/* ============================================
   車型 Slider 區域 - 背景圖片淡入淡出
   ============================================ */
.wep-slider {
    position: relative;
    width: 100%;
    height: 45vh;
    min-height: 280px;
    max-height: 400px;
    overflow: hidden;
    background: #ffffff;
}

/* 電腦版 Slider */
@media (min-width: 768px) {
    .wep-slider {
        flex: 1;
        height: 100%;
        max-height: none;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    }

    .wep-slider-slide {
        background-size: cover;
        background-position: center center;
    }
}

.wep-slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    background-size: 100% auto;
    background-position: 28% center;
    background-repeat: no-repeat;
}

.wep-slider-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.wep-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--wep-transition);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    aspect-ratio: 1 / 1;
    flex: 0 0 40px;
}

.wep-slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.wep-slider-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.wep-slider-btn svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
}

.wep-slider-prev {
    left: 12px;
}

.wep-slider-next {
    right: 12px;
}

/* ============================================
   車型名稱
   ============================================ */
.wep-model-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--wep-text-primary);
    text-align: center;
    padding: 16px 20px 20px;
    background: #ffffff;
    width: 100%;
    min-height: 60px;
}

/* ============================================
   控制面板卡片 - 淺灰高質感容器
   ============================================ */
.wep-control-card {
    width: 100%;
    padding: 24px 20px 28px;
    background: #E8E8E8;
    border-radius: var(--wep-radius-lg) var(--wep-radius-lg) var(--wep-radius-xl) var(--wep-radius-xl);
    box-shadow: var(--wep-shadow-card);
    margin-top: -12px;
    position: relative;
    z-index: 5;
}

/* 電腦版控制面板 */
@media (min-width: 768px) {
    .wep-control-card {
        width: 360px;
        flex-shrink: 0;
        height: 100%;
        margin-top: 0;
        border-radius: 24px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* 控制面板頂部區域（電腦版顯示） */
.wep-control-header {
    display: none;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.wep-control-model-name {
    font-size: 20px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.92);
    text-align: center;
}

.wep-control-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .wep-control-header {
        display: block;
    }

    .wep-control-body {
        padding: 20px;
    }

    /* 電腦版隱藏手機版車型名稱 */
    .wep-model-name {
        display: none;
    }
}

/* ============================================
   車型下拉選單
   ============================================ */
.wep-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.uni-wrap-pro .wep-select,
.wep-control-card .wep-select,
select.wep-select {
    width: 100%;
    height: 48px;
    line-height: 48px;
    padding: 0 44px 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--wep-text-primary);
    background: var(--wep-bg-input);
    border: 1px solid var(--wep-border-light);
    border-radius: 50px !important;
    cursor: pointer;
    transition: var(--wep-transition);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wep-select:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.wep-select:focus {
    outline: none;
    border-color: var(--wep-accent);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.wep-select option {
    background: #ffffff;
    color: #1a1a1a;
    padding: 12px;
}

.wep-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--wep-text-secondary);
    pointer-events: none;
}

/* ============================================
   快捷按鈕組 - Neumorphism 懸浮按鈕
   ============================================ */
.wep-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.wep-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #090909;
    padding: 0.7em 1.7em;
    font-size: 18px;
    border-radius: 0.5em;
    background: #ffffff;
    cursor: pointer;
    border: 1px solid #f5f5f5;
    transition: all 0.3s;
    text-decoration: none;
    box-shadow: 6px 6px 12px #c5c5c5, -6px -6px 12px #ffffff;
}

.uni-wrap-pro .wep-quick-btn {
    background: #ffffff;
}

.wep-quick-btn:hover {
    border: 1px solid white;
}

.wep-quick-btn:active {
    box-shadow: 4px 4px 12px #c5c5c5, -4px -4px 12px #ffffff;
}

.wep-quick-btn-icon {
    width: 24px;
    height: 24px;
    color: currentColor;
    display: block;
}

.wep-quick-btn-text {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.4;
    white-space: nowrap;
}

/* 電腦版快捷按鈕樣式調整 */
@media (min-width: 768px) {
    .wep-quick-actions {
        gap: 12px;
    }

    .wep-quick-btn {
        padding: 16px 12px;
        aspect-ratio: 1 / 1;
        min-height: 80px;
    }
}

/* ============================================
   Tesla 車機安裝說明
   ============================================ */
.wep-install-guide {
    margin-top: 20px;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.wep-install-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    padding: 0;
}

.wep-install-list {
    margin: 0 0 16px 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.wep-install-list li {
    font-size: 13px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 4px;
}

.wep-install-list li:last-child {
    margin-bottom: 0;
}

.wep-install-specs {
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wep-install-specs strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.wep-install-specs p {
    font-size: 12px;
    color: #666666;
    margin: 0 0 4px 0;
    padding: 0;
    line-height: 1.5;
}

.wep-install-specs p:last-child {
    margin-bottom: 0;
}

/* ============================================
   主要 CTA 按鈕 - 醒目設計
   ============================================ */
.wep-cta-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: var(--wep-text-light);
    background: var(--wep-accent);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--wep-transition);
    box-shadow: 0 4px 16px rgba(26, 26, 26, 0.2);
    position: relative;
    overflow: hidden;
}

.wep-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.wep-cta-btn:hover {
    background: var(--wep-accent-hover);
    transform: translateY(-2px);
    color: var(--wep-text-light);
    box-shadow: 0 8px 28px rgba(26, 26, 26, 0.25);
}

.wep-cta-btn:hover::before {
    left: 100%;
}

.wep-cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(26, 26, 26, 0.2);
}

.wep-cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.wep-designer {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff !important;
    background-image: none !important;
    overflow: hidden;
    position: relative;
    border: none !important;
}

/* 電腦版布局：左右分欄 */
@media (min-width: 768px) {
    .wep-designer {
        flex-direction: row;
        height: calc(95vh - 80px);
        max-height: none;
        gap: 24px;
        padding: 24px;
    }
}

.wep-designer::before,
.wep-designer::after {
    display: none !important;
}

.uni-wrap-pro.wep-view-designer {
    width: 100%;
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    background: #ffffff !important;
    background-image: none !important;
    border: none !important;
}

.uni-wrap-pro.wep-view-designer::before,
.uni-wrap-pro.wep-view-designer::after {
    display: none !important;
}

.wep-designer-stage {
    position: relative;
    width: calc(100% - 32px);
    margin: 0px auto 0;
    aspect-ratio: 4 / 3;
    max-height: 55vh;
    flex: 0 0 auto;
    background-color: #f8f9fa;
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* 電腦版 VIEW 區域 */
@media (min-width: 768px) {
    .wep-designer-stage {
        flex: 1;
        width: auto;
        max-height: none;
        height: 100%;
        margin: 0;
        aspect-ratio: auto;
    }
}

.wep-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 24px;
    touch-action: none; /* 防止觸控拖動時頁面捲動 */
}

.wep-designer-stage::before {
    display: none;
}

.wep-designer-back {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
}

/* 電腦版返回按鈕位置調整 */
@media (min-width: 768px) {
    .wep-designer-back {
        top: 20px;
        left: 20px;
    }
}

.wep-designer-back svg {
    width: 20px;
    height: 20px;
    color: #1a1a1a;
}

.wep-designer-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 16px 24px;
    border-radius: 50px 0 0 50px;
    margin-top: 0;
}

/* 電腦版隱藏 meta 區域（整合到右側面板） */
@media (min-width: 768px) {
    .wep-designer-meta {
        display: none;
    }
}

.wep-designer-model-name {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.92);
}

.wep-designer-switch-floating {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    pointer-events: auto;
}

/* ============================================
   功能區 - 質感卡片風格
   ============================================ */
.wep-func-area {
    width: calc(100% - 32px);
    margin: 0 auto;
    background: #ffffff;
    border: none;
    border-radius: 24px 24px 24px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    padding: 16px;
}

/* 電腦版功能區：右側面板 */
@media (min-width: 768px) {
    .wep-func-area {
        width: 360px;
        flex-shrink: 0;
        height: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}

/* 功能區頂部區域（電腦版顯示） */
.wep-func-header {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.wep-func-model-name {
    font-size: 18px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.92);
    text-align: center;
}

@media (min-width: 768px) {
    .wep-func-header {
        display: flex;
    }
}

/* 電腦版懶人版功能區 */
@media (min-width: 768px) {
    .wep-func-area-basic {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 電腦版專業版功能區 */
@media (min-width: 768px) {
    .wep-func-area-pro {
        display: flex;
        flex-direction: column;
    }

    .wep-func-area-pro .wep-side-list-wrapper {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.wep-func-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 16px;
    border: none !important;
    box-shadow: none !important;
}

.wep-func-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-func-tab:hover {
    color: rgba(26, 26, 26, 0.75);
}

.wep-func-tab.active {
    background: #ffffff;
    color: rgba(26, 26, 26, 0.92);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wep-func-tab svg {
    width: 18px;
    height: 18px;
}

.wep-func-content {
    padding: 8px 0;
}

/* 純色選擇 */
.wep-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wep-color-input {
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.wep-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.wep-color-input::-webkit-color-swatch {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

.wep-color-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.65);
    flex: 1;
}

.wep-color-section {
    margin-bottom: 0;
}

.wep-color-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.wep-color-apply,
.wep-color-clear {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-color-apply {
    background: #1a1a1a;
    color: #ffffff !important;
}

.wep-color-apply:hover,
.wep-color-apply:active,
.wep-color-apply:focus {
    background: #333333;
    color: #ffffff !important;
}

.wep-color-clear {
    background: #f0f0f2;
    color: rgba(26, 26, 26, 0.65);
}

.wep-color-clear:hover {
    background: #e5e5e7;
    color: rgba(26, 26, 26, 0.85);
}

/* 專業版純色/漸層區域 */
.wep-pro-paint-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wep-pro-paint-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.wep-func-tabs-small {
    margin-bottom: 12px;
}

.wep-func-tabs-small .wep-func-tab {
    padding: 8px 12px;
    font-size: 12px;
}

/* 漸層選擇 */
.wep-gradient-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.wep-gradient-arrow {
    font-size: 18px;
    color: rgba(26, 26, 26, 0.35);
}

.wep-angle-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wep-angle-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.55);
    min-width: 32px;
}

.wep-angle-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e5e7;
    appearance: none;
    cursor: pointer;
}

.wep-angle-slider::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.wep-angle-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.75);
    min-width: 36px;
    text-align: right;
}

/* 專業版部位展開結構 */
.wep-side-item.expanded {
    background: #f8f8fa;
}

.wep-side-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.wep-side-paint-settings {
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.wep-func-tabs-mini {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.wep-func-tabs-mini .wep-func-tab {
    flex: 1;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 6px;
    background: #f0f0f2;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(26, 26, 26, 0.65);
}

.wep-func-tabs-mini .wep-func-tab.active {
    background: #1a1a1a;
    color: #fff;
}

.wep-side-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wep-color-input-small {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.wep-color-input-small::-webkit-color-swatch-wrapper {
    padding: 0;
}

.wep-color-input-small::-webkit-color-swatch {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.wep-color-label-small {
    flex: 1;
    font-size: 11px;
    color: rgba(26, 26, 26, 0.55);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.wep-side-btn-clear {
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 6px;
    background: #f0f0f2;
    color: rgba(26, 26, 26, 0.45);
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wep-side-btn-clear:hover {
    background: #ff3b30;
    color: #fff;
}

.wep-side-gradient-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wep-side-gradient-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wep-gradient-arrow-small {
    font-size: 14px;
    color: rgba(26, 26, 26, 0.25);
}

.wep-side-angle-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wep-angle-slider-small {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e5e5e7;
    appearance: none;
    cursor: pointer;
}

.wep-angle-slider-small::-webkit-slider-thumb {
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.wep-angle-value-small {
    font-size: 11px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.65);
    min-width: 28px;
    text-align: right;
}

/* 上傳區 */
.wep-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wep-upload-zone:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: #f5f5f7;
}

.wep-upload-zone svg {
    width: 32px;
    height: 32px;
    color: rgba(26, 26, 26, 0.35);
}

.wep-upload-zone span {
    font-size: 13px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.55);
}

.wep-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* 專業版功能區 */
.wep-func-area-pro {
    display: flex;
    flex-direction: column;
}

/* 專業版部位列表捲動容器 */
.wep-side-list-wrapper {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 12px;
}

/* 專業版四方向列表 */
.wep-side-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    padding-top: 0;
}

.wep-side-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f5f5f7;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-height: 56px;
}

.wep-side-item:last-child {
    margin-bottom: 0;
}

.wep-side-item:hover {
    background: #f0f1f3;
}

.wep-side-item.active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wep-side-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.85);
}

.wep-side-actions {
    display: flex;
    gap: 8px;
}

.wep-side-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border: none;
    background: rgba(26, 26, 26, 0.06);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(26, 26, 26, 0.65);
    padding: 0;
}

.wep-side-btn:hover {
    background: rgba(26, 26, 26, 0.12);
    color: rgba(26, 26, 26, 0.85);
}

.wep-side-btn-upload {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.wep-side-btn-upload:hover {
    background: rgba(59, 130, 246, 0.2);
}

.wep-side-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 16px;
    font-weight: 600;
}

.wep-side-btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
}

.wep-side-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.wep-side-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   懶人版 UI
   ============================================ */
.wep-basic-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wep-basic-upload {
    flex: 1;
}

.wep-upload-zone-basic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 20px;
    border: none;
    border-radius: 14px;
    background: #f5f5f7;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wep-upload-zone-basic:hover {
    background: #ebebed;
}

.wep-upload-zone-basic svg {
    width: 24px;
    height: 24px;
    color: rgba(26, 26, 26, 0.45);
}

.wep-upload-zone-basic span {
    font-size: 14px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.65);
}

.wep-upload-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: #f5f5f7;
    border-radius: 14px;
    position: relative;
}

.wep-upload-preview img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.wep-upload-delete {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border: none;
    background: #ef4444;
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    flex-shrink: 0;
    padding: 0;
}

.wep-adjust-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    border: none;
    background: #1a1a1a;
    color: #ffffff !important;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.wep-adjust-btn:hover {
    background: #333333;
    color: #ffffff !important;
}

.wep-adjust-btn svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.wep-adjust-btn span {
    color: #ffffff !important;
}

/* 下載按鈕 */
.wep-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    border: none;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #ffffff;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-download-btn:hover {
    background: linear-gradient(135deg, #333333 0%, #4a4a4a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wep-download-btn:active {
    transform: translateY(0);
}

.wep-download-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.wep-download-btn svg {
    width: 18px;
    height: 18px;
    color: #ffffff;
}

.wep-download-btn span {
    color: #ffffff;
}

/* ============================================
   調整面板 - 懸浮模組
   ============================================ */
.wep-adjust-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 16px 24px;
    pointer-events: none;
    background: transparent !important;
    background-image: none !important;
    border: none !important;
}

.wep-adjust-overlay::before,
.wep-adjust-overlay::after {
    display: none !important;
}

.wep-adjust-panel {
    width: 100%;
    max-width: 400px;
    max-height: 45vh;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.96) !important;
    background-image: none !important;
    border-radius: 20px;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    overflow: hidden;
    pointer-events: auto;
    animation: wep-slide-up 0.3s ease;
    border: none !important;
}

/* 電腦版調整面板：右側顯示 */
@media (min-width: 768px) {
    .wep-adjust-overlay {
        position: absolute;
        top: 0;
        left: auto;
        right: 0;
        bottom: 0;
        width: 360px;
        padding: 0;
        background: rgba(0, 0, 0, 0.3) !important;
        justify-content: flex-end;
        align-items: stretch;
    }

    .wep-adjust-panel {
        max-width: none;
        max-height: none;
        height: 100%;
        border-radius: 0;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
        animation: wep-slide-left 0.3s ease;
    }

    @keyframes wep-slide-left {
        from {
            opacity: 0;
            transform: translateX(20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

.wep-adjust-panel::before,
.wep-adjust-panel::after {
    display: none !important;
}

@keyframes wep-slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wep-adjust-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.wep-adjust-title {
    font-size: 15px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.92);
}

.wep-adjust-close {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border: none;
    background: rgba(26, 26, 26, 0.06);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    color: rgba(26, 26, 26, 0.55);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.wep-adjust-close:hover {
    background: rgba(26, 26, 26, 0.12);
    color: rgba(26, 26, 26, 0.85);
}

.wep-adjust-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.wep-adjust-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.wep-adjust-row:last-child {
    margin-bottom: 0;
}

.wep-adjust-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.65);
    min-width: 36px;
}

.wep-adjust-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e5e5e7;
    appearance: none;
    cursor: pointer;
}

.wep-adjust-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.wep-adjust-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.75);
    min-width: 48px;
    text-align: right;
}

.wep-adjust-modes {
    display: flex;
    gap: 6px;
    flex: 1;
}

.wep-adjust-mode {
    flex: 1;
    padding: 8px 10px;
    border: none;
    background: #f0f0f2;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-adjust-mode:hover {
    background: #e5e5e7;
    color: rgba(26, 26, 26, 0.75);
}

.wep-adjust-mode.active {
    background: #1a1a1a;
    color: #ffffff;
}

/* 調整面板內的純色/漸層設定 */
.wep-adjust-paint-section {
    margin-top: 4px;
}

.wep-adjust-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 10px 0 14px;
}

.wep-adjust-paint-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
}

.wep-adjust-paint-tab {
    flex: 1;
    padding: 6px 10px;
    border: none;
    background: #f0f0f2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.55);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-adjust-paint-tab:hover {
    background: #e5e5e7;
    color: rgba(26, 26, 26, 0.75);
}

.wep-adjust-paint-tab.active {
    background: #1a1a1a;
    color: #ffffff;
}

.wep-adjust-color-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.wep-adjust-color-input {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.wep-adjust-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.wep-adjust-color-input::-webkit-color-swatch {
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
}

.wep-adjust-color-label {
    flex: 1;
    font-size: 12px;
    color: rgba(26, 26, 26, 0.55);
    font-family: 'SF Mono', 'Monaco', monospace;
}

.wep-adjust-color-clear {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #f0f0f2;
    color: rgba(26, 26, 26, 0.45);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wep-adjust-color-clear:hover {
    background: #ff3b30;
    color: #fff;
}

.wep-adjust-gradient-section {
    margin-top: 12px;
}

.wep-adjust-gradient-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wep-adjust-gradient-arrow {
    font-size: 14px;
    color: rgba(26, 26, 26, 0.25);
}

.wep-adjust-angle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.wep-adjust-angle-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.55);
    min-width: 28px;
}

.wep-adjust-paint-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.wep-adjust-paint-apply,
.wep-adjust-paint-clear {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-adjust-paint-apply {
    background: #1a1a1a;
    color: #ffffff !important;
}

.wep-adjust-paint-apply:hover,
.wep-adjust-paint-apply:active,
.wep-adjust-paint-apply:focus {
    background: #333;
    color: #ffffff !important;
}

.wep-adjust-paint-clear {
    background: #f0f0f2;
    color: rgba(26, 26, 26, 0.65);
}

.wep-adjust-paint-clear:hover {
    background: #ff3b30;
    color: #fff;
}

.wep-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
}

/* 切換開關 - 簡潔樣式 */
.wep-mode-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.wep-switch-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(26, 26, 26, 0.55);
    min-width: 56px;
    text-align: center;
    transition: color 0.3s ease;
}

.wep-switch-label.is-active {
    color: rgba(26, 26, 26, 0.92);
}

.wep-switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

.wep-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wep-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.3);
    transition: 0.4s;
    border-radius: 5px;
}

.wep-switch-slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 0.1em;
    border-radius: 0px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: white;
    transition: 0.4s;
}

.wep-switch input:checked + .wep-switch-slider {
    background-color: #171717;
    box-shadow: inset 2px 5px 10px rgb(0, 0, 0);
}

.wep-switch input:checked + .wep-switch-slider:before {
    transform: translateX(2.8em) rotate(360deg);
}

.wep-designer-panel {
    width: 100%;
    padding: 0 18px 18px;
}

.wep-designer-panel-inner {
    width: 100%;
    background: var(--wep-bg-card);
    border-radius: var(--wep-radius-xl);
    box-shadow: var(--wep-shadow-lg);
    padding: 18px 16px;
    margin-top: -14px;
}

.wep-designer-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.wep-designer-action {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 18px;
    padding: 14px 10px 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.wep-designer-action:active {
    transform: scale(0.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.wep-designer-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: rgba(26, 26, 26, 0.85);
}

.wep-designer-action-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(26, 26, 26, 0.92);
}


/* ============================================
   載入狀態
   ============================================ */
.wep-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.wep-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--wep-accent);
    border-radius: 50%;
    animation: wep-spin 0.8s linear infinite;
}

@keyframes wep-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   錯誤狀態
   ============================================ */
.wep-error {
    padding: 24px;
    text-align: center;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--wep-radius-md);
}

/* ============================================
   響應式 - 平板
   ============================================ */
@media (max-width: 768px) {
    .uni-wrap-pro {
        max-width: 100%;
        border-radius: 0;
    }

    .wep-slider {
        min-height: 280px;
    }

    .wep-slider-btn {
        width: 40px;
        height: 40px;
    }

    .wep-slider-prev {
        left: 8px;
    }

    .wep-slider-next {
        right: 8px;
    }

    .wep-model-name {
        font-size: 18px;
        padding: 12px 16px 16px;
    }

    .wep-slider-slide {
        background-size: 255% auto;
        background-position: 28% center;
    }

    .wep-quick-actions {
        gap: 8px;
    }

    .wep-quick-btn {
        padding: 0.65em 1.2em;
        font-size: 16px;
    }
}

/* ============================================
   響應式 - 手機
   ============================================ */
@media (max-width: 480px) {
    .uni-wrap-pro {
        border-radius: 0;
    }

    .wep-designer-stage {
        min-height: 0;
    }

    .wep-designer-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .wep-slider {
        min-height: 240px;
    }

    .wep-slider-slide {
        background-size: 255% auto;
        background-position: 28% center;
    }

    .wep-slider-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
        min-height: 40px;
        flex: 0 0 40px;
    }

    .wep-slider-btn svg {
        width: 18px;
        height: 18px;
    }

    .wep-model-name {
        font-size: 16px;
        padding: 10px 14px 14px;
    }

    .wep-control-card {
        padding: 18px 16px 24px;
    }

    .wep-select {
        height: 44px;
        line-height: 44px;
        padding: 0 40px 0 14px;
        font-size: 14px;
    }

    .wep-cta-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    /* 手機版切換開關縮小 */
    .wep-mode-switch {
        gap: 8px;
    }

    .wep-switch-label {
        font-size: 12px;
        min-width: 44px;
    }

    .wep-switch {
        font-size: 14px;
    }

    /* 手機版整體布局：VIEW 固定，功能區獨立捲動 */
    .wep-designer {
        height: 100vh;
        height: 100dvh; /* 動態視窗高度，適應手機瀏覽器 */
        overflow: hidden;
    }

    .wep-designer-stage {
        flex-shrink: 0;
        max-height: 45vh;
    }

    .wep-designer-meta {
        flex-shrink: 0;
    }

    /* 專業版功能區：限制高度，部位列表可捲動，下載按鈕固定 */
    .wep-func-area-pro {
        flex: 1;
        max-height: none;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .wep-side-list-wrapper {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }

    /* 懶人版功能區也支援捲動 */
    .wep-func-area:not(.wep-func-area-pro) {
        flex: 1;
        overflow-y: auto;
        max-height: none;
    }
}

/* ============================================
   動畫效果
   ============================================ */
.wep-fade-in {
    animation: wep-fadeIn 0.4s ease-out;
}

@keyframes wep-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wep-slide-up {
    animation: wep-slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wep-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   分享 Modal 樣式
   ============================================ */
.wep-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.wep-share-modal-content {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: wep-slideUp 0.3s ease;
}

.wep-share-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.wep-share-modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.wep-share-modal-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
}

.wep-share-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.wep-share-modal-desc {
    font-size: 14px;
    color: rgba(26, 26, 26, 0.6);
    margin: 0;
}

.wep-share-modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wep-share-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wep-share-modal-field label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(26, 26, 26, 0.7);
}

.wep-share-modal-field input,
.wep-share-modal-field textarea {
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-size: 14px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.wep-share-modal-field input:focus,
.wep-share-modal-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.wep-share-modal-field textarea {
    resize: none;
}

.wep-share-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.wep-share-modal-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wep-share-modal-btn-secondary {
    background: #f0f0f2;
    color: rgba(26, 26, 26, 0.7);
}

.wep-share-modal-btn-secondary:hover {
    background: #e5e5e7;
}

.wep-share-modal-btn-primary {
    background: #1a1a1a;
    color: #ffffff !important;
}

.wep-share-modal-btn-primary:hover,
.wep-share-modal-btn-primary:active,
.wep-share-modal-btn-primary:focus {
    background: #333;
    color: #ffffff !important;
}

.wep-share-modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wep-share-modal-success {
    text-align: center;
    padding: 20px 0;
}

.wep-share-modal-success-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.wep-share-modal-success-icon svg {
    width: 32px;
    height: 32px;
    color: #fff;
}

.wep-share-modal-success h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.wep-share-modal-success p {
    font-size: 14px;
    color: rgba(26, 26, 26, 0.6);
    margin: 0;
}

/* ============================================
   翻轉與旋轉按鈕樣式
   ============================================ */
.wep-adjust-transform-btns {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
}

.wep-adjust-transform-btn {
    flex: 1;
    min-width: 70px;
    padding: 8px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 12px;
    font-weight: 500;
    color: rgba(26, 26, 26, 0.7);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.wep-adjust-transform-btn:hover {
    background: #e9ecef;
    border-color: rgba(0, 0, 0, 0.15);
}

.wep-adjust-transform-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
}
