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;
}

/* 分类导航 */
.modern-card-categories {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 32px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.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;
}

.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;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
.modern-card:hover {
    box-shadow: 0 8px 32px 0 rgba(123,97,255,0.18);
    transform: translateY(-6px) scale(1.03);
    text-decoration: none;
    color: inherit;
}

.modern-card:visited {
    color: inherit;
}

.modern-card-thumb {
    width: 100%;
    height: 180px;
    background: #f6f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.doc-icon-large {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 2px 8px rgba(123,97,255,0.2));
    transition: transform 0.3s;
}

.modern-card:hover .doc-icon-large {
    transform: scale(1.1);
}

.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: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.9em;
}

.modern-card-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modern-card-type {
    background: #ede7ff;
    color: #7b61ff;
    font-size: 0.90em;
    border-radius: 6px;
    padding: 4px 10px;
    font-weight: 600;
    letter-spacing: 1px;
    display: inline-block;
    vertical-align: middle;
    align-self: flex-start;
}

.modern-card-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #7b61ff 0%, #a991ff 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(123,97,255,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123,97,255,0.4);
}

.btn-secondary {
    background: white;
    color: #7b61ff;
    border: 2px solid #7b61ff;
}

.btn-secondary:hover {
    background: #7b61ff;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(123,97,255,0.3);
}

/* 筛选动画 */
.modern-card.filtered-out {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.modern-card.filtered-in {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

@media (max-width: 900px) {
    .modern-card-list {
        flex-direction: column;
        gap: 28px;
        align-items: center;
    }
    .modern-card {
        width: 92vw;
        max-width: 400px;
    }
    .modern-card-categories {
        gap: 12px;
        margin-bottom: 24px;
    }
    .modern-card-categories .category {
        font-size: 0.9rem;
        padding: 5px 16px;
    }
}

@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;
    }
    .doc-icon-large {
        width: 100%;
        height: 100%;
    }
    .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: 3.3em;
    }
    .modern-card-type {
        font-size: 0.86em;
        padding: 3px 8px;
    }
    .modern-card-actions {
        gap: 6px;
    }
    .btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .modern-card-categories {
        gap: 8px;
        margin-bottom: 18px;
    }
    .modern-card-categories .category {
        font-size: 0.85rem;
        padding: 4px 12px;
        border-radius: 14px;
    }
} 