/* 符文上传站专属样式 */

/* 上传区域样式 */
.upload-section {
    position: relative;
    padding: 2rem;
    margin-bottom: 3rem;
    background-color: rgba(13, 10, 29, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
    overflow: hidden;
}

.magic-circle-upload {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, transparent 30%, rgba(138, 43, 226, 0.1) 70%, transparent 100%);
    animation: rotateSlow 20s linear infinite;
    z-index: 0;
}

.upload-container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.upload-box {
    position: relative;
    padding: 3rem 2rem;
    border: 2px dashed rgba(138, 43, 226, 0.5);
    border-radius: 8px;
    background-color: rgba(13, 10, 29, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-box:hover {
    border-color: #8a2be2;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    background-color: rgba(13, 10, 29, 0.8);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.format-hint {
    font-size: 0.9rem;
    color: #c0c0c0;
    margin: 1rem 0;
    font-style: italic;
}

#file-upload {
    display: none;
}

#upload-btn, #sample-btn {
    padding: 0.75rem 1.5rem;
    margin: 1rem 0.5rem;
    background-color: #8a2be2;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'MedievalSharp', cursive;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

#upload-btn:hover, #sample-btn:hover {
    background-color: #7b20d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}

.upload-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    min-height: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.upload-message.success {
    background-color: rgba(0, 200, 83, 0.2);
    color: #4caf50;
    border: 1px solid #4caf50;
    opacity: 1;
}

.upload-message.error {
    background-color: rgba(255, 87, 34, 0.2);
    color: #ff5722;
    border: 1px solid #ff5722;
    opacity: 1;
}

/* 符文图鉴样式 */
.rune-gallery {
    padding: 2rem;
    background-color: rgba(13, 10, 29, 0.8);
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

.filter-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-container input,
.filter-container select {
    padding: 0.5rem 1rem;
    background-color: rgba(13, 10, 29, 0.9);
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 4px;
    font-family: 'MedievalSharp', cursive;
}

.filter-container input::placeholder {
    color: #c0c0c0;
}

.rune-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.rune-card {
    position: relative;
    padding: 1.5rem;
    background-color: rgba(26, 18, 44, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.rune-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.rune-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.4);
    border-color: #8a2be2;
}

.rune-card:hover::before {
    opacity: 1;
}

.rune-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
}

.rune-card .rune-game {
    font-size: 0.9rem;
    color: #8a2be2;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.rune-card .rune-property {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: rgba(138, 43, 226, 0.2);
    color: #d8bfd8;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.rune-card .rune-method {
    font-size: 0.9rem;
    color: #c0c0c0;
    line-height: 1.4;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state .hint {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

/* 数据预览样式 */
.data-preview {
    padding: 2rem;
    background-color: rgba(13, 10, 29, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.3);
}

.preview-container {
    max-height: 300px;
    overflow-y: auto;
    background-color: rgba(13, 10, 29, 0.9);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 4px;
    padding: 1rem;
    margin-top: 1rem;
}

#data-preview {
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #c0c0c0;
    white-space: pre-wrap;
}

/* 符文详情模态框样式 */
.modal-content {
    max-width: 600px;
    background-color: rgba(13, 10, 29, 0.95);
    border: 2px solid #8a2be2;
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
}

#modal-rune-info {
    text-align: center;
}

#modal-rune-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.8);
}

#modal-rune-info .modal-game {
    font-size: 1.2rem;
    color: #8a2be2;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

#modal-rune-info .modal-property {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(138, 43, 226, 0.3);
    color: #d8bfd8;
    border-radius: 20px;
    font-size: 1rem;
    margin-bottom: 2rem;
    border: 1px solid #8a2be2;
}

#modal-rune-info .modal-method {
    font-size: 1rem;
    color: #e0e0e0;
    line-height: 1.6;
    text-align: left;
    padding: 1rem;
    background-color: rgba(26, 18, 44, 0.6);
    border-radius: 4px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
    }
    
    .filter-container input,
    .filter-container select {
        width: 100%;
    }
    
    .rune-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    #modal-rune-info h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .upload-section,
    .rune-gallery,
    .data-preview {
        padding: 1rem;
    }
    
    .upload-box {
        padding: 2rem 1rem;
    }
    
    .rune-grid {
        grid-template-columns: 1fr;
    }
}