/* Pure CSS implementation without Tailwind */

@font-face {
    font-family: 'AiDianFengYaHei';
    src: url('/static/fonts/AiDianFengYaHei.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Source-Sans-Pro-Bold-2';
    src: url('/static/fonts/Source-Sans-Pro-Bold-2.otf') format('truetype');
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AbrilFatface-Regular-2';
    src: url('/static/fonts/AbrilFatface-Regular-2.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

:root {
    /*对比色*/
    --compare-color: #ea6535;

    /* 灰色 */
    --brand-gray: #DADCE0;

    /* 黑色 */
    --brand-dark: #101010;

    /* 亮灰 */
    --brand-light-gray: #F9F9F9;

    /* 主题色亮 */
    --brand-theme-light: #c0d696;

    /* 主题主色*/
    --brand-main: #507047;

    /* 主题副色 */
    --brand-secondary: #78974b;
}

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

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--brand-dark);
    transition: all 0.3s ease;
}

/*
    Container
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}


/*
    CTA Button
*/
.btn-primary {
    background: var(--brand-main);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #c0d6964d;
}


/*
    header-nav
*/
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 2rem 1.5rem;
    transform: translate3d(0, 0, 0);
}

.navbar.scrolled {
    position: fixed;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    width: 100%;
}

/*  Logo */
.logo-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-box .logo-text {
    /*font-size: 1.75rem !important;*/
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    font-size: clamp(1.75rem, 1.75rem, 1.75rem) !important; /* 现代浏览器 */
    -webkit-text-size-adjust: none !important; /* Safari/iOS */
    text-size-adjust: none !important; /* 标准属性 */
}

.navbar.scrolled .logo-box .logo-text {
    color: var(--brand-dark);
}


/* 导航链接*/
.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;

}

.nav-link {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    padding: 12px 8px;
    margin-left: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:first-child {
    margin-left: 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 4px;
    background: linear-gradient(135deg, var(--brand-main), var(--brand-secondary));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: white;
}

.navbar.scrolled .nav-link {
    color: var(--brand-dark);
}

.navbar.scrolled .nav-link:hover {
    color: var(--brand-main);
}

.navbar.scrolled .nav-link::after {
    background: var(--brand-main);
}


/* 切换菜单*/
.switcher-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* 语言切换*/
.language-switcher .switcher-button {
    display: inline-block;
    color: white;
    padding: 10px 22px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: unset;
    position: relative;
}

.language-switcher .switcher-button i {
    margin-right: 5px;
}

.language-switcher .switcher-button:hover {
    background: unset;
    transform: translateY(-2px);
    box-shadow: unset;
}

.navbar.scrolled .language-switcher .switcher-button {
    color: #101010;
}

/* 品牌切换 */
.brand-switcher .switcher-button {
    display: inline-block;
    background: var(--brand-main);
    color: white;
    padding: 10px 22px;
    border-radius: 1000px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.brand-switcher .switcher-button i {
    margin-right: 5px;
}

.brand-switcher .switcher-button:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px #c0d6964d;
}

.navbar.scrolled .brand-switcher .switcher-button {
    color: #ffffff;
}

.navbar.scrolled .brand-switcher .switcher-button:hover {
    color: #ffffff;
}

.navbar.scrolled .brand-switcher .switcher-button::after {
    background: var(--brand-main);
}


.navbar .mobile-menu-btn:hover {
    color: var(--brand-theme-light);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--brand-dark);
}

.navbar.scrolled .mobile-menu-btn:hover {
    color: var(--brand-main);
}

/* 下拉菜单基础样式 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    position: absolute;
    right: 0;
    background-color: #ffffff;
    min-width: 192px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    z-index: 1001;
    overflow: hidden;
    transition: all 0.3s ease;
    top: 100%;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
}

/* 悬停显示下拉菜单 */
.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    height: unset;
}

.dropdown-content a {
    color: #374151;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background-color: #f3f4f6;
}

.mobile-menu-close-btn {
    display: none;
}

/* 小于1024px - ipad、手机 */
@media (max-width: 1280px) {

    .navbar {
        transition: transform 0.3s ease-in-out;
    }

    .switcher-menu {
        display: none;
    }

    .nav-menu {
        display: none;
    }

    .navbar .mobile-menu-btn {
        color: white;
        display: block;
    }
}

/* 大于 1024px - pc */
@media (min-width: 1281px) {

    .navbar .mobile-menu-btn {
        display: none;
    }
}


/*
    header-nav-mobile
*/
.navbar.mobile-unfold {
    max-width: 400px;
    height: 100%;
    width: 100%;
    left: unset;
    background: #000000;
    backdrop-filter: blur(1.25rem); /* 20px / 16px = 1.25rem */
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.08); /* 8px / 16px = 0.5rem, 32px / 16px = 2rem */
}

.navbar.mobile-unfold .nav-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100%;
}

.navbar.mobile-unfold .nav-container .logo-box {
    width: 100%;
}

.navbar.mobile-unfold .nav-container .logo-box .logo-text {
    font-size: 1.6rem;
    color: white
}

.navbar.mobile-unfold .nav-container .nav-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
}

.navbar.mobile-unfold .nav-container .nav-menu a {
    margin-left: unset;
    color: white;
    font-size: 1.5rem;
    font-weight: unset;
}

.navbar.mobile-unfold .mobile-menu-btn {
    display: none;
}

.navbar.mobile-unfold .mobile-menu-close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    right: 1.5rem;
    top: 2rem; /* 39.2px / 16px ≈ 2.45rem */
    color: white;
}

/* Mobile specific switchers */
.navbar.mobile-unfold .switcher-menu {
    display: none;
}

.mobile-switchers {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1rem 0 1rem;
    border-top: 0.0625rem solid #eee; /* 1px / 16px = 0.0625rem */
    margin-top: auto;
}

.navbar.mobile-unfold .mobile-switchers {
    display: flex;
}

.language-switcher-mobile,
.brand-switcher-mobile {
    width: 100%;
}

.language-switcher-mobile .switcher-button,
.brand-switcher-mobile .switcher-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem; /* 12px / 16px = 0.75rem, 16px / 16px = 1rem */
    background: #f8f9fa;
    border-radius: 0.5rem; /* 8px / 16px = 0.5rem */
    font-weight: 500;
    color: #333;
}

.brand-switcher-mobile .switcher-button {
    background: var(--brand-main);
    color: white;
}

.language-switcher-mobile .dropdown-content,
.brand-switcher-mobile .dropdown-content {
    position: static;
    box-shadow: none;
    background: transparent;
    margin-top: 0.5rem;
    padding-left: 1rem;
    height: 1px;
}

.language-switcher-mobile.dropdown:hover .dropdown-content,
.brand-switcher-mobile.dropdown:hover .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: translateY(0px);
    height: unset;
}

.language-switcher-mobile .dropdown-content a,
.brand-switcher-mobile .dropdown-content a {
    padding: 0.5rem 1rem; /* 8px / 16px = 0.5rem, 16px / 16px = 1rem */
    color: white;
    border-radius: 0.375rem; /* 6px / 16px = 0.375rem */
    font-size: 1rem;
}

.language-switcher-mobile .dropdown-content a:hover,
.brand-switcher-mobile .dropdown-content a:hover {
    background-color: unset;
}

/* 小于750px - 手机 */
@media (max-width: 750px) {

    .navbar.mobile-unfold {
        max-width: 100%;
    }
}



/*
    footer
*/
.footer-container {
    background-color: #101010;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.footer-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.footer-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 5rem;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-flex > div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    max-width: 49%;
}

.footer-flex .logo-text {
    /*font-size: 1.875rem;*/
    line-height: 2.25rem;
    font-weight: 700;
    font-size: clamp(1.875rem, 1.875rem, 1.875rem) !important; /* 现代浏览器 */
    -webkit-text-size-adjust: none !important; /* Safari/iOS */
    text-size-adjust: none !important; /* 标准属性 */
}

.footer-flex .logo-text a {
    display: inline-block;
    color: #f3f4f6;
    text-decoration: none;
}

.footer-flex .slogan {
    font-size: 40px;
    line-height: 45px;
    color: #f3f4f6;
    font-family: 'AbrilFatface-Regular-2', sans-serif;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
    /*margin-bottom: 3rem;*/
    flex-wrap: wrap;
}

.footer-links .footer-contact {
    flex: 3;
}

.footer-description {
    color: #f3f4f6;
    margin-bottom: 1.5rem;
    padding-right: 2.5rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    padding-bottom: 1.25rem;
}

.footer-contact-icon {
    color: #f3f4f6;
}

.footer-contact-text {
    color: #f3f4f6;
    margin-left: 1rem;
}

.footer-link-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    gap: 1rem 0rem;
}

.footer-contact-link {
    color: #f3f4f6;
    margin-left: 0.4rem;
    margin-right: 1rem;
}

.footer-links .footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    min-width: 49%;
}

.footer-nav .footer-links-column {
    min-width: 150px;
}

.footer-nav .footer-links-column h4 {
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 1rem;
}

.footer-nav .footer-links-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav .footer-links-column li {
    margin-bottom: 0.5rem;
}

.footer-nav .footer-links-column a {
    color: #bababa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-nav .footer-links-column a:hover {
    color: #ffffff;
}

/* Footer column toggle styles */
.footer-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
}

.footer-column-header h4 {
    margin-bottom: 0;
}

.footer-toggle-icon {
    transition: transform 0.3s ease;
}

.footer-column-content {
    transition: max-height 0.3s ease, opacity 0.3s ease;
}


.copyright {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    margin-top: 2rem;
}

.copyright-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text {
    color: #bababa;
    font-size: 0.875rem;
    margin: 0;
}

.copyright-text a {
    color: #bababa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.copyright-text a:hover {
    color: #ffffff;
}


/* 小于1024px - ipad */
@media (max-width: 1023px) {

    .footer-flex div {
        width: 100%;
        max-width: unset;
    }

    .footer-links {
        flex-direction: column-reverse;
    }
}

/* 屏幕小于750px时的折叠样式 */
@media (max-width: 750px) {

    .footer-links .footer-nav {
        grid-template-columns: unset;
        gap: unset;
    }

    .footer-nav .footer-links-column {
        min-width: 100%;
        border-bottom: 1px solid #333;
        padding: 0.5rem 0;
    }

    .footer-nav .footer-column-header h4 {
        font-size: 1.1rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .footer-nav .footer-links-column li {
        margin-bottom: 1rem;
    }

    .footer-nav .footer-column-header i {
        color: white;
    }

    .footer-nav .footer-column-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
    }

    .footer-nav .footer-links-column.expanded .footer-column-content {
        max-height: unset;
        opacity: 1;
    }

    .footer-nav .footer-links-column.expanded .footer-toggle-icon {
        transform: rotate(180deg);
    }


    .copyright-content {
        flex-direction: column;
    }
}



/**
 * 新品上新
 */
.goods-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.goods-column .title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 1rem 1.5rem;
}

.goods-column .title-block .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 2rem;
    font-weight: bold;
    color: #262626;
}

.goods-column .title-block .title span {
    font-weight: normal;
}

.goods-column .title-block .title img {
    width: 100%;
}

.goods-column .title-block .sub-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
}

.goods-column .category {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.goods-column .category .category-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 1200px;
    margin: 0 5px 1rem 5px;
    -ms-overflow-style: none; /* IE 和 Edge */
    scrollbar-width: none; /* Firefox */
}

.goods-column .category .category-list .item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    margin-right: 10px;
    border: 1px solid #222222;
    cursor: pointer;
}

.goods-column .category .category-list .item:last-child {
    margin-right: 0px;
}

.goods-column .category .category-list .active {
    border: 1px solid #ff4242;
    color: #ff4242;
}

.goods-column .goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 左对齐 */
    max-width: 1200px;
    padding: 0px 0;
    width: 100%;
}

.goods-column .goods-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    margin: 10px;
    width: calc(20% - 22px);
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.goods-column .goods-card:hover {
    transform: translateY(-5px);
}

.goods-column .goods-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 保持1:1比例 */
    overflow: hidden;
}

.goods-column .goods-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片覆盖整个容器 */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.goods-column .goods-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    flex-grow: 1;
}

.goods-column .goods-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.goods-column .goods-price {
    margin: 0;
    color: #e91e63;
}

.goods-column .more {
    border: 1px solid #222222;
    padding: 12px 32px;
    margin-top: 1rem;
    cursor: pointer;
}

@media (max-width: 1000px) {

    .goods-column .goods-card {
        width: calc(33% - 20px);
    }

}

@media (max-width: 768px) {

    .goods-column .goods-list {
        padding: 0;
    }

    .goods-column .goods-card {
        width: calc(50% - 20px);
    }

    .goods-column .title-block .title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .goods-column .goods-card {
        width: calc(50% - 12px);
        margin: 10px 5px;
    }

    .goods-column .title-block .title {
        font-size: 1.7rem;
    }

    .img-mobile {
        display: block !important;
    }
    .img-web {
        display: none !important;
    }
}

@media (min-width: 480px) {

    .img-mobile {
        display: none !important;
    }
    .img-web {
        display: block !important;
    }
}

@media (max-width: 320px) {
    .goods-column .goods-card {
        width: 100%;
    }
}
