html {
    scrollbar-width: none;      
    -ms-overflow-style: none;   
}
html::-webkit-scrollbar {
    display: none;             
}

body, html {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background: #fff;
}

body {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(.4,0,.2,1);
}
body.page-loaded {
    opacity: 1;
}


.page-loading-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7b61ff 0%, #a991ff 100%);
    z-index: 9999;
    animation: loadingBar 1.2s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loadingBar {
    0% { width: 0; }
    100% { width: 100vw; }
}


.modern-card {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}
body.page-loaded .modern-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}


.modern-card-list .modern-card:nth-child(1) { transition-delay: 0.1s; }
.modern-card-list .modern-card:nth-child(2) { transition-delay: 0.2s; }
.modern-card-list .modern-card:nth-child(3) { transition-delay: 0.3s; }
.modern-card-list .modern-card:nth-child(4) { transition-delay: 0.4s; }
.modern-card-list .modern-card:nth-child(5) { transition-delay: 0.5s; }
.modern-card-list .modern-card:nth-child(6) { transition-delay: 0.6s; }
.modern-card-list .modern-card:nth-child(7) { transition-delay: 0.7s; }
.modern-card-list .modern-card:nth-child(8) { transition-delay: 0.8s; }

.nb-bg-gradient {
    min-height: 100vh;
    width: 100%;
    background: radial-gradient(ellipse 60% 40% at 70% 10%, #e5e0fa 0%, #f8f8ff 60%, #fff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 80px;
}

.nb-center-block {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nb-subtitle {
    color: #7b61ff;
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-align: center;
}

.nb-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #181c32;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 1px;
}

.nb-desc {
    color: #888;
    font-size: 1.15rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    line-height: 1.7;
    max-width: 700px;
}

.nb-card-list {
    display: flex;
    flex-direction: row;
    gap: 48px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.nb-card {
    background: none;
    box-shadow: none;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 340px;
    min-width: 0;
    margin: 0;
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nb-card-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 4px 24px 0 rgba(123,97,255,0.08);
    background: #f6f6fa;
    margin-bottom: 18px;
    transition: box-shadow 0.2s, transform 0.2s;
}

.nb-card:hover .nb-card-img {
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.18);
    transform: scale(1.03);
}

.nb-card-title {
    font-size: 1.13rem;
    font-weight: 600;
    color: #181c32;
    margin-bottom: 8px;
    text-align: center;
}

.nb-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: #222;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 0;
}

.modern-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: flex-start;
    margin-top: 10px;
}

.modern-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.08);
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(123,97,255,0.05);
}
.modern-card:hover {
    box-shadow: 0 16px 48px 0 rgba(123,97,255,0.15);
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(123,97,255,0.1);
}

.modern-card-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.modern-card-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(123,97,255,0.05) 0%, rgba(123,97,255,0.02) 100%);
    z-index: 1;
}
.modern-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}
.modern-card:hover .modern-card-thumb img {
    transform: scale(1.08);
}

.modern-card-body {
    padding: 24px 24px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    position: relative;
}

.modern-card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 12px;
    line-height: 1.3;
    word-break: break-all;
    letter-spacing: -0.02em;
}

.modern-card-desc {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
    font-weight: 400;
}

.modern-card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(123,97,255,0.08);
}

.modern-card-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-card-license {
    background: linear-gradient(135deg, #ede7ff 0%, #e8e2ff 100%);
    color: #7b61ff;
    font-size: 0.85em;
    border-radius: 12px;
    padding: 6px 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(123,97,255,0.1);
    box-shadow: 0 2px 8px rgba(123,97,255,0.08);
    transition: all 0.3s ease;
}
.modern-card-license:hover {
    background: linear-gradient(135deg, #e8e2ff 0%, #e3ddff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,97,255,0.12);
}

.modern-card-category {
    background: #f0f0f0;
    color: #666;
    font-size: 0.85em;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: inline-block;
    vertical-align: middle;
}

.modern-card-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.modern-card-oldprice {
    color: #9ca3af;
    text-decoration: line-through;
    font-size: 0.85em;
    font-weight: 500;
    vertical-align: middle;
    display: inline-block;
    text-decoration-thickness: 2px;
    text-decoration-color: #d1d5db;
}

.modern-card-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #7b61ff;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #f4f1ff 0%, #f0edff 100%);
    border-radius: 10px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(123,97,255,0.1);
    border: 1px solid rgba(123,97,255,0.1);
    transition: all 0.3s ease;
}
.modern-card-price:hover {
    background: linear-gradient(135deg, #f0edff 0%, #ece9ff 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(123,97,255,0.15);
}

.modern-card-amount {
    font-size: 1rem;
    font-weight: 800;
    color: #e53935;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #fff5f5 0%, #fff0f0 100%);
    border-radius: 12px;
    padding: 6px 14px;
    box-shadow: 0 3px 12px rgba(229,57,53,0.15);
    border: 1px solid rgba(229,57,53,0.2);
    transition: all 0.3s ease;
}
.modern-card-amount:hover {
    background: linear-gradient(135deg, #fff0f0 0%, #ffebeb 100%);
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(229,57,53,0.2);
}

.modern-card-oldprice-label {
    color: #e53935;
    font-weight: bold;
    font-size: 0.92em;
    margin-right: 2px;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.modern-card-list a.modern-card {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
}

.modern-card-list a.modern-card:visited {
    color: inherit;
}

.modern-card-list a.modern-card:hover {
    text-decoration: none;
}

.modern-card-categories {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 36px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.modern-card-categories .category {
    background: linear-gradient(135deg, #f4f1ff 0%, #f0edff 100%);
    color: #7b61ff;
    font-size: 0.95rem;
    border-radius: 20px;
    padding: 8px 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    border: 1px solid rgba(123,97,255,0.1);
    box-shadow: 0 2px 8px rgba(123,97,255,0.08);
    position: relative;
    overflow: hidden;
}
.modern-card-categories .category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}
.modern-card-categories .category:hover::before {
    left: 100%;
}
.modern-card-categories .category.active,
.modern-card-categories .category:hover {
    background: linear-gradient(135deg, #7b61ff 0%, #6b51ef 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123,97,255,0.25);
    border-color: rgba(123,97,255,0.3);
}

@media (max-width: 900px) {
    .nb-card-list {
        flex-direction: column;
        gap: 32px;
        align-items: center;
    }
    .nb-card {
        width: 90vw;
        max-width: 400px;
    }
    .modern-card-list {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }
    .modern-card {
        width: 92vw;
        max-width: 400px;
    }
}
@media (max-width: 600px) {
    .nb-title {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    .nb-desc {
        font-size: 0.95rem;
        margin-bottom: 18px;
        line-height: 1.5;
        padding: 0 10px;
    }
    .modern-card-list {
        gap: 14px;
        padding: 0 5vw;
    }
    .modern-card {
        width: 90vw;
        max-width: 90vw;
        min-width: 0;
        border-radius: 16px;
    }
    .modern-card-thumb {
        height: 70vw;
        max-height: 200px;
        border-radius: 16px 16px 0 0;
    }
    .modern-card-thumb img {
        border-radius: 16px 16px 0 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .modern-card-body {
        padding: 16px 12px 12px 12px;
    }
    .modern-card-title {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    .modern-card-desc {
        font-size: 0.9rem;
        margin-bottom: 12px;
        min-height: 2.1em;
    }
    .modern-card-price {
        font-size: 0.85rem;
        padding: 4px 8px;
        border-radius: 8px;
    }
    .modern-card-license, .modern-card-oldprice, .modern-card-category {
        font-size: 0.8em;
        padding: 4px 8px;
        margin-right: 4px;
    }
    
    .modern-card-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        padding-top: 12px;
    }
    
    .modern-card-left, .modern-card-right {
        justify-content: center;
    }
    
    .modern-card-amount {
        font-size: 0.95rem;
        padding: 4px 10px;
    }
    .modern-card-categories {
        gap: 10px;
        margin-bottom: 18px;
    }
    .modern-card-categories .category {
        font-size: 0.95rem;
        padding: 5px 14px;
        border-radius: 14px;
    }
}
