@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

html {
    height: 100%;
    overflow: hidden;
    font-size: 16px;
    font-family: 'Noto Sans SC', sans-serif;
    /* 全局字体大小基准 */
}

body {
    background-image: url(https://api.blockhaity.qzz.io/images);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    height: 100vh;
    width: 100vw;
    margin: 0;
    overflow: hidden;
}

.sidebar-card {
    width: 350px;
    height: 85%;
    position: fixed;
    left: 60px;
    top: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0066cc;
    border-radius: 30px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

.waterfall {
    position: fixed;
    width: calc(100% - 540px);
    left: 450px;
    top: 40px;
    height: calc(100vh - 120px);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    overflow-y: auto;
    padding: 20px;
    align-content: flex-start;
}

.waterfall-card {
    width: calc(33.333% - 14px);
    min-height: auto;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #0066cc;
    border-radius: 30px;
    padding: 15px;
    backdrop-filter: blur(5px);
    color: white;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
    flex-direction: column;
}

.waterfall-card-content {
    margin: 5px 5px 15px 5px;
    flex: 1;
}

.waterfall-item:nth-child(1) {
    animation-delay: 0.1s;
}

.waterfall-item:nth-child(2) {
    animation-delay: 0.2s;
}

.waterfall-item:nth-child(3) {
    animation-delay: 0.3s;
}

.waterfall-item:nth-child(4) {
    animation-delay: 0.4s;
}

.waterfall-item:nth-child(5) {
    animation-delay: 0.5s;
}

.waterfall-item:nth-child(6) {
    animation-delay: 0.6s;
}

.waterfall-item:nth-child(n+7) {
    animation-delay: 0.7s;
}

.link {
    text-align: center;
    margin-top: 10px;
}

.link a {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 102, 204, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    border: 2px solid #0066cc;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.link a:hover {
    background: rgba(0, 102, 204, 1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.avatar {
    width: 60%;
    height: auto;
    border-radius: 50%;
    margin: 20px auto 15px;
    display: block;
    border: 3px solid #0066cc;
    object-fit: cover;
}

code {
    display: block;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #0066cc;
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e0e0e0;
    white-space: pre;
}

code::-webkit-scrollbar {
    height: 8px;
}

code::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

code::-webkit-scrollbar-thumb {
    background: #0066cc;
    border-radius: 4px;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .sidebar-card {
        width: 90%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .waterfall {
        width: 100%;
        left: 0;
        padding: 10px;
    }

    .waterfall-card {
        width: 100%;
        min-height: auto;
    }
}


