/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.5;
    background-color: #f5f7fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

/* 标题样式 */
h2 {
    font-size: 24px;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 20px;
}

h3 {
    font-size: 20px;
    font-weight: 500;
    color: #1d1d1f;
    margin: 25px 0 15px;
}

/* 表格样式 */
.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 1px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

th, td {
    padding: 12px 16px;
    text-align: center;
    border: none;
    font-size: 14px;
}

th {
    background-color: #f8f8f8;
    font-weight: 500;
    color: #1d1d1f;
    position: sticky;
    top: 0;
}

td {
    border-top: 1px solid #f0f0f0;
}

/* 交替行颜色 */
tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* 输入框样式 */
input[type="number"] {
    width: 90px;
    padding: 8px 12px;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background-color: #fff;
}

input[type="number"]:focus {
    border-color: #0071e3;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,113,227,0.1);
}

/* 按钮样式 */
button {
    background-color: #0071e3;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #0077ed;
}

/* 图表容器样式 */
.chart-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
    width: 100%;
    max-width: 800px;
    height: 400px;
}

/* 随机数据控制区域 */
.random-data-controls {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.input-group label {
    font-weight: 500;
    color: #1d1d1f;
}

/* 图表样式定制 */
#charts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
} 