* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.upload-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.upload-area {
    border: 2px dashed #3498db;
    border-radius: 5px;
    padding: 40px 20px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    background-color: #f8f9fa;
    border-color: #2980b9;
}

.upload-area p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

.loading {
    text-align: center;
    padding: 20px;
}

.loading p {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.results-section {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.results-section h2 {
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    margin: 0;
}

.results-list {
}

.result-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.result-item:last-child {
    border-bottom: none;
}

.logo-image {
    flex: 0 0 120px;
    height: 120px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.result-info {
    flex: 1;
}

.result-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.similarity {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
    margin: 10px 0;
}

.similarity span {
    font-size: 1.3rem;
}

.trademark-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.trademark-image {
    text-align: center; /* 居中显示图片 */
    margin-bottom: 20px; /* 图片与信息之间的间距 */
}

.trademark-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.trademark-info {
}

.info-row {
    margin-bottom: 8px;
}

.info-label {
    font-weight: bold;
    color: #3498db;
    display: inline-block;
    width: 80px;
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
}