body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: #333;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.search-box {
    display: flex;
    margin-bottom: 20px;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

#searchInput {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
    outline: none;
}

button {
    padding: 15px 25px;
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    background: linear-gradient(to right, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-info {
    text-align: center;
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 14px;
}

.results {
    margin-top: 20px;
}

.results-header {
    text-align: center;
    margin-bottom: 25px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.query-text {
    font-weight: bold;
    color: #e74c3c;
}

.monster-item {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.monster-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.monster-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.monster-header h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 22px;
}

.map-info {
    color: #7f8c8d;
    font-style: italic;
    font-size: 14px;
}

.items-container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.items-label {
    font-weight: bold;
    color: #2c3e50;
    min-width: 80px;
}

.items-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 1;
}

.item-tag {
    background: linear-gradient(to right, #e3f2fd, #bbdefb);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    color: #1976d2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.item-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.highlight {
    background-color: #fff3cd;
    color: #856404;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: bold;
}

.no-results {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

.no-results h3 {
    color: #e74c3c;
    margin-bottom: 15px;
}

/* 媒体查询针对小屏幕（手机） */
@media (max-width: 600px) {
    .search-box {
        flex-direction: column;
        border-radius: 8px;
    }
    
    #searchInput {
        border-radius: 8px 8px 0 0;
    }
    
    button {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }
    
    .items-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .items-label {
        min-width: auto;
    }
}