body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

#background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.announcement {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 0 auto 30px;
    max-width: 1400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.announcement h1 {
    text-align: center;
    color: #333;
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.lora-masonry {
    column-count: 3;
    column-gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    column-fill: balance;
}

.lora-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: fit-content;
    margin-bottom: 25px;
    break-inside: avoid;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.lora-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.lora-card.selected {
    outline: 2px solid rgba(102, 126, 234, 0.7);
    outline-offset: 2px;
}

.lora-card.selected::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: inherit;
    border-radius: 15px;
    filter: blur(8px);
    z-index: -1;
    opacity: 0.7;
}

.lora-name {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.lora-preview {
    width: 100%;
    object-fit: contain;
    border-bottom: 1px solid #eee;
    display: block;
}

.lora-preview-placeholder {
    width: 100%;
    min-height: 200px;
    background-color: rgba(240, 240, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
    border-bottom: 1px solid #eee;
}

.loading-placeholder {
    width: 100%;
    min-height: 200px;
    background-color: rgba(240, 240, 240, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    position: relative;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top: 5px solid #667eea;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lora-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.trigger-words {
    margin-bottom: 20px;
    flex-grow: 1;
}

.trigger-words h3 {
    margin-top: 0;
    color: #555;
    font-size: 16px;
}

.trigger-words-content {
    background-color: rgba(249, 249, 249, 0.7);
    padding: 12px 15px;
    border-radius: 6px;
    border-left: 4px solid #667eea;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.versions {
    margin-top: 15px;
}

.version-btn {
    display: flex;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version-download {
    flex: 2;
    background-color: #4CAF50;
    color: white;
    padding: 12px 15px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.version-download:hover {
    background-color: #45a049;
}

.version-model {
    flex: 1;
    background-color: #2196F3;
    color: white;
    padding: 12px 10px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    transition: background-color 0.3s;
}

.version-model:hover {
    background-color: #1976D2;
}

.no-versions {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 15px;
}

/* 三列交错效果 */
.lora-masonry.three-columns .lora-card:nth-child(3n+1) {
    margin-top: 100px;
}

.lora-masonry.three-columns .lora-card:nth-child(3n+3) {
    margin-top: 200px;
}

@media (max-width: 1024px) {
    .lora-masonry {
        column-count: 2;
    }
    
    /* 两列交错效果 */
    .lora-masonry.two-columns .lora-card:nth-child(2n+1) {
        margin-top: 100px;
    }
}

@media (max-width: 768px) {
    .lora-masonry {
        column-count: 1;
        column-gap: 20px;
    }
    
    /* 单列时取消交错效果 */
    .lora-masonry .lora-card {
        margin-top: 0 !important;
    }
    
    .announcement h1 {
        font-size: 2rem;
    }
}