h1,
h2,
h3,
h4,
h5,
h6,
p,
a {
    font-family: 'Manrope', sans-serif;
}

button:hover {
  cursor: pointer;
}

.mobile-menu {
    padding: 2rem;
}

.dropdown-enter-active,
.dropdown-leave-active {
    transition: opacity 0.1s ease-out, transform 0.1s ease-out;
}
.dropdown-enter-from,
.dropdown-leave-to {
    opacity: 0;
    transform: scale(0.9);
}

.mobile-menu ul {
    width: 100%;
    text-align: center;
}

.mobile-menu li {
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
    padding-top: 1rem;
}

.mobile-dropdown-menu li{
    border-bottom: none;
    border-top: 1px solid #e0e0e0;
}

.mobile-dropdown-menu li:last-child {
    padding-bottom: 0;
}

.mobile-dropdown-menu{
   margin-top: 12px;
}

/* .group:hover h3,
.group:hover p {
    color: #ffffff;
} */

@keyframes scaleUp {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.group-hover\:scale-120:hover {
    animation: scaleUp 0.3s forwards;
}

@keyframes slideDown {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.search-slide-down {
    animation: slideDown 0.3s forwards;
}

/* home page */
.main-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.main-slider .swiper-slide {
    position: relative;
    text-align: center;
}

.main-slider .swiper-slide img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
    object-position: center;
}

@media(max-width:640px){
    .main-slider .swiper-slide img {
        height: 22rem;
    }
}

@media(min-width:1400px){
    .main-slider .swiper-slide img {
        height: 34rem;
    }
}

.main-slider .swiper-slide-content {
    position: absolute;
    bottom: 12%;
    left: 8%;
    text-align: left;
    max-width: 42rem;
}

@media (max-width:640px) {
    .main-slider .swiper-slide-content{
        left: 0;
        right: 0;
        text-align: center;
        bottom: 10%;
        padding: 0 16px;
    }
}

.main-slider  .swiper-slide {
    padding: 0;
}

/* 购物车角标 */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 9999px;
    background: #00fcfc;
    color: #010717;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.cart-bump { animation: cartBump 0.4s ease; }

/* 加购飞入动画 */
.fly-to-cart {
    position: fixed;
    z-index: 100;
    pointer-events: none;
    object-fit: contain;
    background: #f3f5f9;
    border-radius: 9999px;
    transition: all 0.7s cubic-bezier(0.5, -0.2, 0.75, 0.4);
}

/* 加购成功按钮态 */
.js-add-cart.added {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #fff !important;
}

#product-slider {
    position: relative;
}

#product-slider .swiper-button-prev, #product-slider .swiper-button-next{
    color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    margin-top: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    background: rgba(1, 7, 23, 0.35);
    backdrop-filter: blur(4px);
    transition: background 0.2s ease;
}

#product-slider .swiper-button-prev:hover, #product-slider .swiper-button-next:hover{
    background: rgba(1, 7, 23, 0.6);
}

#product-slider .swiper-button-prev { left: 1.5rem; }
#product-slider .swiper-button-next { right: 1.5rem; }

#product-slider .swiper-button-prev::after, #product-slider .swiper-button-next::after{
    font-size: 1.1rem;
    font-weight: 700;
}

.brands-swiper-slider .swiper-button-prev, .brands-swiper-slider .swiper-button-next{
    color: #00fcfc;
}

.brands-swiper-slider .swiper-button-next{
    right: 0;
}

.brands-swiper-slider .swiper-button-prev{
    left: 0;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 16px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .swiper-slide {
        padding: 25px;
    }
}

@media (max-width: 1023px) {

    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }
}

img.cursor-pointer:hover {
    opacity: 0.8;
}

/* single product tabs */
.tab {
    padding: 0.5rem 1rem;
    color: #010717; 
    border-bottom-width: 2px;
    border-color: transparent;
    font-size: 1rem;
    font-weight: 500; 
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab:hover {
    color: #323232; 
    border-color: #00fcfc; 
}
.tab.active {
    color: #00fcfc; 
    border-color: #00fcfc;
}
.tab-content {
    display: none;
}
.tab-content:not(.hidden) {
    display: block;
}


.custom-checkbox {
    appearance: none;
    background-color: #fff;
    border: 1px solid #d1d5db;
    padding: 0.5rem;
    display: inline-block;
    position: relative;
    cursor: pointer;
    outline: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
}

.custom-checkbox:checked {
    background-color: #00fcfc;
    border-color: #00fcfc;
}

/* 白色 logo 在浅色背景上显示为黑色 */
.logo-black {
    filter: brightness(0);
}

/* 商品卡片图片区：统一高度，完整显示模型不裁切 */
.product-card-img {
    width: 100%;
    height: 16rem;
    object-fit: contain;
    background: #f3f5f9;
}

/* 首页分类横幅图：统一高度 */
.category-img {
    width: 100%;
    height: 18rem;
    object-fit: cover;
}

/* 详情页缩略图：统一高度 */
.thumb-img {
    width: 100%;
    height: 6rem;
    object-fit: contain;
    background: #f3f5f9;
}

/* 商品标题：固定两行高度，卡片整体等高 */
.product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

/* 3D 模型在线预览（model-viewer） */
model-viewer {
    width: 100%;
    height: 480px;
    background: #0b1020;
    border-radius: 0.5rem;
    --poster-color: transparent;
}


/* 青色底配白字对比度不足，实心主色按钮统一深色文字 */
.bg-primary {
  color: #010717;
}

/* ---- 补充：预编译 styles.css 中缺失的工具类（注册/登录页用到） ---- */
.rounded-2xl { border-radius: 1rem; }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25); }
.blur-3xl { filter: blur(64px); }
.opacity-20 { opacity: 0.2; }
.drop-shadow-2xl { filter: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15)); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.text-white\/70 { color: rgb(255 255 255 / 0.7); }
.text-white\/90 { color: rgb(255 255 255 / 0.9); }
.border-gray-200 { border-color: #e5e7eb; }
.pl-11 { padding-left: 2.75rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.w-56 { width: 14rem; }
.w-64 { width: 16rem; }
.h-56 { height: 14rem; }
.space-x-6 > :not([hidden]) ~ :not([hidden]) { margin-left: 1.5rem; }
.space-y-5 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.25rem; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px rgb(0 252 252 / 0.5); }

/* ---- 补充：注册页图标/光晕/分割线定位类 ---- */
.left-4 { left: 1rem; }
.top-1\/2 { top: 50%; }
.-right-24 { right: -6rem; }
.-top-24 { top: -6rem; }
.-left-16 { left: -4rem; }
.bottom-10 { bottom: 2.5rem; }
.inset-x-0 { left: 0; right: 0; }
.text-gray-400 { color: #9ca3af; }

/* ---- 补充：注册页外间距/限宽 ---- */
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.max-w-6xl { max-width: 72rem; }

/* 注册页外间距：移动 5rem / 桌面 8rem */
.auth-section { padding-top: 5rem; padding-bottom: 5rem; }
@media (min-width: 1024px) {
  .auth-section { padding-top: 8rem; padding-bottom: 8rem; }
}

/* ---- 补充：注册页卡片内边距 ---- */
.p-10 { padding: 2.5rem; }
@media (min-width: 1024px) {
  .lg\:p-14 { padding: 3.5rem; }
}

/* ---- 补充：审计后补齐的注册页缺失类 ---- */
.mr-3 { margin-right: 0.75rem; }
.text-gray-500 { color: #6b7280; }
.z-10 { z-index: 10; }
.focus\:bg-white:focus { background-color: #fff; }
@media (min-width: 1024px) {
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:w-64 { width: 16rem; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:block { display: block; }
}
