body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

h1 {
    color: #2c3e50;
    margin: 0;
}

.language-switcher select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.input-section, .result-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.input-section {
    flex: 1;
    min-width: 300px;
}

.result-section {
    flex: 3;
    min-width: 800px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 14px;
}

th, td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    position: sticky;
    top: 0;
    cursor: pointer;
}

th:hover {
    background-color: #e6e6e6;
}

tr:hover {
    background-color: #f5f5f5;
}

.positive {
    color: green;
}

.negative {
    color: red;
}

#resultsTable {
    max-height: 600px;
    overflow-y: auto;
}

.summary {
    margin-top: 20px;
    font-weight: bold;
}

.highlight {
    background-color: #fffacd;
}

.controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.sort-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 10px;
}

.results-count {
    font-weight: bold;
    color: #3498db;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #ddd;
    color: #666;
    font-size: 14px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.email-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.email-link:hover {
    text-decoration: underline;
}

.signature {
    font-style: italic;
    margin-top: 10px;
}

.loading {
    display: none;
    text-align: center;
    padding: 20px;
    font-weight: bold;
    color: #3498db;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .input-section, .result-section {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .controls {
        flex-direction: column;
        gap: 15px;
    }
    
    table {
        font-size: 12px;
    }
    
    th, td {
        padding: 6px 4px;
    }
}