html {
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE/Edge */
}
html::-webkit-scrollbar {
    display: none;              /* Chrome/Safari/Opera */
}

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: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(123,97,255,0.10);
    width: 320px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
    position: relative;
}
.modern-card:hover {
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.18);
    transform: translateY(-6px) scale(1.03);
}

.modern-card-thumb {
    width: 100%;
    height: 180px;
    background: #f6f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modern-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px 18px 0 0;
    transition: transform 0.3s;
}
.modern-card:hover .modern-card-thumb img {
    transform: scale(1.06);
}

.modern-card-body {
    padding: 20px 20px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
}

.modern-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #181c32;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-all;
}

.modern-card-desc {
    color: #888;
    font-size: 0.98rem;
    margin-bottom: 16px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.modern-card-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.modern-card-license {
    background: #ede7ff;
    color: #7b61ff;
    font-size: 0.90em;
    border-radius: 6px;
    padding: 2px 8px;
    margin-right: 6px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
}

.modern-card-oldprice {
    color: #bbb;
    text-decoration: line-through;
    font-size: 0.90em;
    margin-right: 6px;
    font-weight: 400;
    vertical-align: middle;
    display: inline-block;
}

.modern-card-price {
    font-size: 0.98rem;
    font-weight: 800;
    color: #7b61ff;
    letter-spacing: 1px;
    background: #f4f1ff;
    border-radius: 8px;
    padding: 2px 10px;
    box-shadow: 0 1px 4px rgba(123,97,255,0.07);
}

.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: 18px;
    margin-bottom: 32px;
    margin-top: 8px;
}
.modern-card-categories .category {
    background: #f4f1ff;
    color: #7b61ff;
    font-size: 1rem;
    border-radius: 18px;
    padding: 6px 22px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}
.modern-card-categories .category.active,
.modern-card-categories .category:hover {
    background: #7b61ff;
    color: #fff;
}

@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: 14px;
    }
    .modern-card-thumb {
        height: 70vw;
        max-height: 200px;
        border-radius: 14px 14px 0 0;
    }
    .modern-card-thumb img {
        border-radius: 14px 14px 0 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .modern-card-body {
        padding: 10px 7px 8px 7px;
    }
    .modern-card-title {
        font-size: 0.98rem;
        margin-bottom: 5px;
    }
    .modern-card-desc {
        font-size: 0.88rem;
        margin-bottom: 10px;
        min-height: 2.1em;
    }
    .modern-card-price {
        font-size: 0.90rem;
        padding: 2px 7px;
        border-radius: 6px;
    }
    .modern-card-license, .modern-card-oldprice {
        font-size: 0.86em;
        padding: 2px 6px;
        margin-right: 4px;
    }
    .modern-card-categories {
        gap: 10px;
        margin-bottom: 18px;
    }
    .modern-card-categories .category {
        font-size: 0.95rem;
        padding: 5px 14px;
        border-radius: 14px;
    }
}
