body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 20px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    color: #1a73e8;
}

.top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    width: 240px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.search-btn {
    padding: 10px 16px;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.mode-select {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    background: #fff;
}

.upload-btn {
    padding: 10px 18px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: 0.2s;
}

.card:hover {
    transform: translateY(-3px);
}

.title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
}

.meta {
    margin-top: 6px;
    font-size: 14px;
    color: #555;
}

.author {
    color: #666;
    margin-top: 4px;
}

.desc {
    margin-top: 8px;
    font-size: 14px;
    color: #444;
}

.pagination {
    text-align: center;
    margin-top: 25px;
}

.pagination button {
    padding: 10px 18px;
    margin: 0 10px;
    border: none;
    background: #4a90e2;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
}

.pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal {
    width: 480px;
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    float: right;
    cursor: pointer;
    font-size: 22px;
    color: #333;
}

.modal-title {
    text-align: center;
    color: #000;
    margin-bottom: 15px;
}

.modal input,
.modal textarea,
.modal select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: rgba(255,255,255,0.6);
    border: 1px solid #ccc;
    border-radius: 10px;
    color: #000;
}

#dropArea {
    border: 2px dashed #4a90e2;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    background: #f8fbff;
    cursor: pointer;
    margin-bottom: 15px;
    color: #333;
}

.glass-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #000;
    border: 1px solid rgba(0,0,0,0.25);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15),
                inset 0 0 10px rgba(255,255,255,0.2);
    transition: 0.25s ease;
}

.glass-btn:hover {
    background: rgba(255,255,255,0.45);
    transform: translateY(-2px);
}

.glass-btn:active {
    transform: translateY(0);
}

#msg {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-size: 14px;
}

#msg.success { background: #e6f7e6; color: #2e8b57; }
#msg.error { background: #fdeaea; color: #d9534f; }