* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f0f0f0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.input-section {
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

label {
    width: 80px;
    font-weight: bold;
}

input[type="text"] {
    flex: 1;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.btn-group {
    display: flex;
    margin-left: 10px;
}

button {
    padding: 5px 10px;
    margin: 0 2px;
    background-color: #e6e6e6;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background-color: #d9d9d9;
}

.action-buttons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.action-buttons button {
    padding: 5px 15px;
    margin-left: 10px;
}

#calculate-btn {
    background-color: #4CAF50;
    color: white;
}

#exit-btn {
    background-color: #f44336;
    color: white;
}

.result-section {
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 15px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #ccc;
}

.result-content {
    height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-family: monospace;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.5;
}

.footer {
    text-align: right;
    font-size: 12px;
    color: #666;
}

#result-count {
    font-weight: bold;
}