/* ========================================
   Theme CSS - 页面样式汇总
   从 scheme-b-v3-alt.html 提取
   ======================================== */

/* CSS 变量 */
:root {
    --color-main: 243, 153, 99;
    --color-sub: 247, 203, 82;
}

/* 基础样式 */
html, body {
    width: 100%;
    height: 100%;
}

body {
    position: relative;
    background-color: #fefcfa;
}

/* 文本选中样式 */
::selection {
    background-color: #f39963;
    color: white;
}

/* 下拉菜单样式 */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease-out;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Toast 消息样式 */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    z-index: 9999;
    animation: toastFadeIn 0.3s ease;
}

.toast.success {
    background-color: #10b981;
}

.toast.error {
    background-color: #ef4444;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Checkbox 样式 */
.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: rgb(243, 153, 99);
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

/* Gallery 样式 (产品详情页) */
.gallery-main-img {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-main-img.active {
    opacity: 1;
}

.gallery-thumb {
    transition: all 0.2s ease;
}

.gallery-thumb.active {
    transform: scale(1.05);
}
