html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    /* transition: all 0.2s ease; */
    --primaryColor: #00C29A;
    --primaryDarkerColor: #009274;
    --onPrimaryColor: #fff;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "微软雅黑", sans-serif;
}

.container {
    margin: auto;
    width: 1200px;
    min-width: 1200px;
    max-width: 1200px;
    padding-left: unset;
    padding-right: unset;
    position: relative;
}

.home {
    display: flex;
}

.home>.catalog {
    background: #fff;
    width: 250px;
}

@font-face {
    font-family: brand;
    src: url('../fonts/书法.ttf');
}

ul,
li {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

a:link {
    color: unset;
}

a:visited {
    color: unset;
}

a:hover {
    color: var(--primaryColor);
}

a:active {
    color: unset;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

body {
    background-color: #fff;
}


section {
    min-height: 100%;
    position: relative;
}

.header-top {
    background-color: #3d3d3d;
    text-align: right;
    position: relative;
    display: table;
    width: 100%;
}

.header-top .brand {
    float: left;
    color: #ddd;
    padding: 8px;
}

.header-top nav {
    display: inline-block;
}

.header-top nav li {
    display: inline-block;
}

.header-top nav li a.link.login {
    color: #56e6c7;
}

.header-top nav a.link {
    display: inline-block;
    color: #ccc;
    padding: 0.5rem 0.5rem;
    transition: color 0.15s;
}

.header-top nav a.link:hover {
    color: #fff;
}

.header-top nav li::after {
    content: "|";
    color: #777;
}

.header-top nav li.end::after {
    content: none;
}



.card {
    box-shadow: 0 1px 3px rgb(0 0 0 / 7%);
}

.search-bar {
    margin: 32px auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.search-bar .brand {
    font-size: 40px;
    font-weight: 600;
    font-family: brand;
    margin-right: 100px;
    color: #555;
    transition: all.2s;
}

.search-bar .brand:hover {
    text-decoration: none;
    color: var(--primaryColor);
}

.search-box {
    border: 2px solid var(--primaryColor);
    /* border-radius: 4px; */
    overflow: hidden;
    display: flex;
}

.search-box input {
    margin: 0;
    padding: 0;
    border: none;
    padding: 8px 12px;
    width: 500px;
}

.search-box input:focus {
    outline: none;
}

.hot_search {
    color: #999;
    font-size: 12px;
    margin: 2px 8px;
}

.search-bar .search-btn {
    box-shadow: none;
    border: inherit;
    display: inline-block;
    position: relative;
    padding: 0 1rem;
    font-size: 1.2rem;
    color: var(--onPrimaryColor);
    background-color: var(--primaryColor);
    cursor: pointer;
}

.search-bar .search-btn:hover {
    box-shadow: rgba(0, 0, 0, 0.125) inset 0px 0px 100px;
}

.search-bar .search-btn:active {
    content: '';
    box-shadow: rgba(0, 0, 0, 0.25) inset 0px 0px 100px;
}

.search-bar .cart-btn {
    box-shadow: none;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px 24px;
    border: 1px solid #ccc;
    border-radius: 2px;
    background: #FCFCFC;
    cursor: pointer;
    color: #222;
    transition: box-shadow 0.2s;
}

.search-bar .cart-btn:hover {
    background: #f1f1f1;
}

.search-bar .cart-btn .icon {
    padding-right: 1rem;
    position: relative;
}

.search-bar .cart-btn .size {
    position: absolute;
    top: -50%;
    right: -2px;
    background: #FF4E45;
    color: var(--onPrimaryColor);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}


/* 轮播图上方的导航 */
.second_headernav {
    border-bottom: 1px #ddd solid;
}

.second_headernav>.home>.catalog {
    font-weight: bold;
    padding-left: 16px;
}

.second_headernav>.home>.center {
    padding: 0;
}

.second_headernav>.home>.center>li {
    display: inline-block;
    font-weight: bold;
    margin-right: 12px;
}

.second_headernav>.home>.center>li>a {
    display: inline-block;
    padding: 0 16px 8px;
    border-bottom: 1px transparent solid;
    transition: all.2s;
}

.second_headernav>.home>.center>li>a:hover {
    border-bottom: 1px var(--primaryColor) solid;
}



footer {
    padding: 30px 0;
    background: #F5F5F5;
    font-size: 12px;
    text-align: center;
}

footer>p {
    margin: 8px 0;
}

/* 覆盖 */
.custom-control-input:checked~.custom-control-label::before {
    color: #fff;
    border-color: var(--primaryColor);
    background-color: var(--primaryColor);
}