﻿:root {
    /* layui 七色调 */
    --c-red: #ff5722;
    --c-orange: #ffb800;
    --c-green: #16baaa;
    --c-blue: #1e9fff;
    --c-purple: #a233c6;
    --c-black: darkslategray; /* #2f363c; */
    --c-price: orangered;
    /* 基本色调 */
    --c-primary: #2f363c;
    --c-accent: #16baaa;
    --c-bg: whitesmoke;
    --c-bg-secondary: #f8f9fa;
    --c-text: darkslategray; /* #171717;*/
    --c-text-light: #737373;
    --c-border: #e5e5e5;
    --c-money: orangered;
    /* 레이아웃 */
    --header-height: 130px;
    --container-width: 1280px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    /* Z-인덱스 */
    --z-header: 1000;
    --z-modal: 2000;
}

* {
    box-sizing: border-box;
}

body {
    font: 14px Microsoft Yahei,Malgun Gothic,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;
    color: var(--c-text);
    background: var(--c-bg);
    margin: 0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.align-center {
    justify-content: center !important;
    text-align: center !important;
}

.align-right {
    justify-content: right !important;
    text-align: right !important;
}

.align-left {
    justify-content: left !important;
    text-align: left !important;
}

span.required {
    color: red;
}

div {
    position: relative;
}

    div.rj-grid {
        display: grid;
        border-top: 2px solid darkslategray;
        border-left: 1px solid whitesmoke;
    }

    div.rj-row {
        display: contents;
    }

    div.rj-header {
        padding: 5px;
        border-bottom: 1px solid whitesmoke;
        border-right: 1px solid whitesmoke;
        display: flex;
        align-items: center;
        background-color: whitesmoke;
    }

    div.rj-cell {
        padding: 5px;
        border-bottom: 1px solid whitesmoke;
        border-right: 1px solid whitesmoke;
        display: flex;
        align-items: center;
    }

div.rj-flex {
    display: flex;
    align-items: center;
}

div.rj-qty {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap:5px;
}
    div.rj-qty button {
        height: 25px;
        width: 25px;
        border-radius: 50%;
        display: flex;
        font-size:18px;
        cursor:pointer;
        align-items: center;
        justify-content: center;
    }
    div.rj-qty input {
        width: 50px;
        text-align: center;
    }

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

button, input, select {
    font-family: inherit;
    color: darkslategray;
}

    input::placeholder {
        color: silver;
        font-weight: normal;
    }

    input.layui-input {
        color: darkslategray;
    }

/* 禁用 浏览器自动完成功能 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
}

/* rj-control */
.rj-button {
    border: 1px solid silver;
    background-color: whitesmoke;
    justify-content: center;
    align-items: center;
    height: 35px;
    padding: 0px 20px;
    border-radius: 20px;
    display: inline-flex;
    gap: 5px;
    font-weight: bold;
    cursor: pointer;
}

.rj-button:hover {
    color: var(--c-accent);
    transform: translateY(-2px);
    transition: all 0.3s;
}

/* rj-link-text, rj-link-menu */
.rj-link-text {

}
.rj-link-menu {
    font-weight: bold;
    cursor: pointer;
    padding: 5px 10px;
    overflow-wrap: unset;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}
    .rj-link-menu:hover {
        color: var( --c-accent);
    }

    .rj-link-menu::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 2px;
        background: var( --c-accent);
        transition: width 0.3s;
    }
    .rj-link-menu:hover::after {
        width: 100%;
    }

.rj-link-menu-mobile {
    font-weight: bold;
    cursor: pointer;
    padding: 15px 0px 15px 15px;
    overflow-wrap: unset;
    white-space: nowrap;
}

.rj-link-menu-mobile:hover {
    color: var(--c-accent);
    background-color: whitesmoke;
    border-left: 5px solid var(--c-accent);
}

/* Search Input */
.rj-link-search {
    display:flex;
    align-items:center;
    gap:5px;
    overflow-wrap: unset;
    white-space:nowrap;
    width:300px;
}
    .rj-link-search input {
        padding: 4px 15px;
        flex: 1;
        text-align: center;
        border: 1px solid silver;
        border-radius: 15px;
        background-color: white;
    }
    .rj-link-search i {
        font-size: 16px;
        cursor: pointer;
    }

.rj-link-search2 {
    display: none;
    justify-content:center;
    align-items: center;
    gap: 5px;
    overflow-wrap: unset;
    white-space: nowrap;
    width: 200px;
}

    .rj-link-search2 input {
        padding: 4px 15px;
        text-align:center;
        border: none;
        background: transparent;
        border-bottom: 1px solid silver;
    }

    .rj-link-search2 i {
        font-size: 16px;
        cursor:pointer;
    }

/* DropDown Button 弹出框 */
.layui-dropdown {
    margin: 2px 0px;
}
.layui-dropdown-menu {
    margin: 0px;
    border: 1px solid silver;
    padding-top: 2px;
    border-top: 2px solid dimgray;
}
    .layui-dropdown-menu li {
        padding: 5px 15px;
        border-bottom: 1px solid whitesmoke;
    }

/* Pop 弹出层 */
.pop-float-layer .layui-layer-title {
    background-color: var(--c-black);
    color: white;
}
.pop-float-layer .layui-layer-setwin .layui-icon {
    color: white;
}

