body {
    font-family: Arial, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

h1 {
    text-align: center;
    color: #333;
}

h2 {
    color: #444;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: inline-block;
    width: 80px;
    margin-right: 10px;
    font-weight: bold;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    flex: 1;
}

#btn-set {
    background-color: #4CAF50;
    margin-right: 5px;
}

#btn-set:hover {
    background-color: #45a049;
}

#btn-add {
    background-color: #2196F3;
    margin-right: 5px;
}

#btn-add:hover {
    background-color: #0b7dda;
}

.reset-btn, #btn-reset {
    background-color: #f44336;
}

.reset-btn:hover, #btn-reset:hover {
    background-color: #da190b;
}

.result-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-top: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.result-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.chart-container {
    height: 300px;
    margin-top: 20px;
    position: relative;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    background-color: #4CAF50;
    transition: height 0.3s ease;
    border-radius: 2px 2px 0 0;
}

.chart-label {
    position: absolute;
    bottom: -25px;
    font-size: 12px;
    text-align: center;
}

/* 表单相关样式 */
.form-section {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.input-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 5px;
}

.button-row {
    display: flex;
    gap: 15px;
}

/* 测试用例相关样式 */
.test-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f0f7ff;
    border-radius: 6px;
    border: 1px solid #d0e3ff;
}

.test-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.test-cases {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.test-case {
    flex: 1;
    max-width: 300px;
    padding: 15px;
    background-color: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    text-align: center;
}

.test-case h4 {
    margin-top: 0;
    color: #444;
}

.test-case p {
    font-family: monospace;
    color: #666;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

.test-case button {
    width: 100%;
    background-color: #9c27b0;
    margin-top: 10px;
    margin-right: 0;
}

.test-case button:hover {
    background-color: #7b1fa2;
}
