@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Semibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'HarmonyOS Sans SC';
    src: url('../fonts/HarmonyOS_SansSC_Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #ED7F2A;
    --dark-color: #F7F8FC;
    --darker-color: #E8E8E8;
    --light-color: #121212;
    --accent-color: #D4AF37;
    --gray-color: #F0F0F0;
    --nav-color: #666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "HarmonyOS Sans SC", "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--light-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    font-weight:300;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "HarmonyOS Sans SC", "Microsoft Yahei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.imgbox img{
    transition:all 0.4s ease-out;
    -webkit-filter: saturate(0.9);
    filter: saturate(0.9);
}
.imgbox:hover img{
    transform:scale(1.1);
    -webkit-filter: saturate(1);
    filter: saturate(1);
}


ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}
input:focus{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-modify:read-write-plaintext-only;}
input[type=number],input[type=password],input[type=text],textarea {
    -webkit-appearance: none;
}
input:-webkit-autofill{
    box-shadow:0 0 0 10000px #ffffff inset !important;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}
.bg-dark-color{
    background:var(--dark-color);
}
.icon{
    font-size: 0 !important;
}
.icon::before{
    background-image: url(../img/icon.webp);
    background-repeat: no-repeat;
    background-size: 12rem;
    font-size: 0;
    width: 2rem;
    height: 2rem;
    display: inline-block;
    content: "";
    vertical-align:middle;
}

.icon:hover::before{
    background-image: url(../img/icon_h.webp);
}
.sticky-nav .fa-brands:hover{
    transform: translateY(-3px);
    transition: all 0.3s ease;
}
.normal-nav .fa-brands:before,
.sticky-nav:hover .fa-brands:before, 
.sticky-nav.scrolled .fa-brands:before{
    background-image: url(../img/icon_h.webp);
}

.fa-weixin::before{
    background-position: -46px 0px;
}
.fa-shipinhao:before{
    background-position: -92px 0px;
}
.fa-xiaohongshu:before{
    background-position: -138px 0px;
}
.join_xingming:before{
    background-position: 0px -59px;
}
.join_dianhua:before{
    background-position: -80px -59px;
}
.join_dizhi:before{
    background-position: -156px -59px;
}
.fa-map-alt::before{
    background-position: -80px -376px;
    width: 3rem;
    height: 3rem;
}
.fa-phone-alt::before{
    background-position: 2px -376px;
    width: 3rem;
    height: 3rem;
}
.fa-download::before{
    background-position: 2px -327px;
}
.fa-chevron-down:before,.fa-chevron-right:before{
    width:3rem;
    height:3rem;
}
.fa-chevron-down:before{
    background-position: -72px -213px;
}
.fa-chevron-right:before{
    background-position: 5px -213px;
}

.btn-search{
    height:100%;
}
.btn-search::before{
    background-position: 2px -275px;
}
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(237, 127, 42, 0.3);
}
.btn-filtrate.active{
    background-color: var(--primary-color);
    color: white !important;
}
.btn-filtrate{
    color: var(--nav-color);
    background:#ffffff;
    border-radius: 9999px;
    min-width: 7.5em;
    padding: 0.5em 1.5em;
}
.btn-filtrate:hover{
    color: var(--light-color);
    transition: all 0.3s ease;
}
.btn-filtrate.active:hover{
    background-color:#f18f42;
}
.btn-outline {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(237, 127, 42, 0.3);
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--primary-color);
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.feature-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    color: var(--primary-color);
}

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: var(--primary-color);
}

.product-card {
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}

.product-image-container {
    overflow: hidden;
    position: relative;
}

.product-image {
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.testimonial-card {
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.logo-light {
    display: block;
}

.logo-dark {
    display: none;
}

.normal-nav .logo-light,
.sticky-nav:hover .logo-light,
.sticky-nav.scrolled .logo-light {
    display: none;
}

.normal-nav .logo-dark,
.sticky-nav:hover .logo-dark,
.sticky-nav.scrolled .logo-dark {
    display: block;
}
.normal-nav .nav-link{
    color: var(--light-color);
}
.sticky-nav:not(.scrolled):not(.normal-nav):not(:hover) .nav-link {
    color: white;
}

.sticky-nav:not(.scrolled):not(:hover) .social-icon-hover {
    color: white;
}

.sticky-nav:not(.scrolled):not(:hover) .text-gray-700 {
    color: white;
}

.sticky-nav:not(.scrolled):not(:hover) .fa-bars{
    color: white;
}

.sticky-nav:hover .nav-link,
.sticky-nav.scrolled .nav-link,
.normal-nav .fa-bars{
    color: var(--light-color) !important;
}

.sticky-nav:hover .text-gray-700:not(:hover),
.sticky-nav.scrolled .text-gray-700:not(:hover) {
    color: var(--nav-color);
}

.fa-group{
    display: flex;
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav {
        display: block;
    }
    .fa-chevron-down:before,.fa-chevron-right:before{
        transform: scale(0.75);
    }
}

@media (min-width: 1025px) {
    .desktop-nav {
        display: flex;
    }

    .mobile-nav {
        display: none;
    }
}
