/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('../images/background .jpg') center/cover no-repeat fixed;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

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

h2, h3 {
    color: #34495e;
    margin-bottom: 15px;
    text-align: left;
    width: 100%;
}

/* 主要内容区域布局 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 输入区域样式 */
.input-section {
    flex: 1.2;
    min-width: 400px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 输入组件样式 */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    width: 100%;
}

/* 表格样式 */
.coordinates-table {
    margin: 20px auto;
    overflow-x: auto;
    max-width: 100%;
    display: inline-block;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px auto;
    flex-wrap: wrap;
}

/* 输入模式按钮组样式 */
.input-mode-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    width: 100%;
}
input[type="number"] {
    padding: 8px;
    border: 2px solid #bbb;
    border-radius: 4px;
    width: 100px;
}
/* 离散函数板块样式 */
.discrete-function-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 5px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100px;
}

.discrete-function-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    letter-spacing: 10px;
    text-align: center;
    width: 100%;
}

.settings-button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 15px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.settings-button:hover {
    background-color: var(--primary-color);
    color: white;
}

/* 表格样式 */
.coordinates-table {
    margin: 20px 0;
    overflow-x: auto;
    padding: 15px;
}

table {
    min-width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

th {
    background-color: #f8f9fa;
    position: relative;
    white-space: nowrap;
    padding-right: 55px !important;
}

th .circle-button {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

th .delete-button {
    right: 2px;
}

/* 按钮样式 */
button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#add-row {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
    display: block;
}

#add-row:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

/* 图表区域样式 */
.chart-section {
    flex: 1.8;
    min-width: 500px;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chart-section canvas {
    min-height: 400px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* 图表类型选择样式 */
select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    
    .input-section,
    .chart-section {
        width: 100%;
    }
}

/* 输入模式选择样式 */
.input-mode {
    margin-bottom: 15px;
}

.input-mode label {
    margin-right: 20px;
    cursor: pointer;
}

.input-mode input[type="radio"] {
    margin-right: 5px;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要按钮悬停色 */
}

/* 圆形按钮基础样式 */
.circle-button {
    width: 20px;
    height: 20px;
    padding: 0;
    border: 1px solid #333;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-left: 5px;
    background-color: transparent;
    color: #333;
    vertical-align: middle;
}

.circle-button:hover {
    background-color: #2ecc71;
    border-color: #2ecc71;
    color: white;
    transform: none;
    box-shadow: none;
}

/* 删除按钮样式 */
.delete-button {
    background-color: transparent !important;
    border-color: #333 !important;
    color: #333 !important;
    margin-left: 2px !important;
}

.delete-button:hover {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}
.delete-button:hover {
    background-color: #c0392b !important;
}

/* 图表类型按钮组样式 */
.chart-type-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.chart-type-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chart-type-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.chart-type-btn.active {
    background-color: var(--primary-color);
    color: white;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 标题设置区域样式 */
.title-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
    width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* 坐标轴标签容器 */
.axis-labels {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}
.chart-title-input {
    width: 100%;
}
.axis-label-input input, .chart-title-input input {
    width: 200px;
    padding: 8px 12px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 0.95rem;
}

.chart-title-input input {
    width: 420px;
}
/* 保存图表按钮样式 */
#save-chart {
    width: 420px;
}

/* 生成图表按钮容器 */
.center-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.axis-label-input input:focus, .chart-title-input input:focus {
    border-color: var(--primary-color);
    outline: none;
}
.main-action-button {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: 4px;
    width: 200px;
    text-align: center;
    transition: all 0.3s ease;
    margin: 20px auto;
}

.main-action-button:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}
/* 设置面板样式 */
.settings-panel {
    position: absolute;
    top: 100%;
    right: 25px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    margin-top: 10px;
}

.settings-panel h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.mode-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mode-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #34495e;
}

.mode-options input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

/* X值输入框禁用状态样式 */
.x-value[disabled] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

/* 表格控制按钮区域 */
.table-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

/* 图表背景样式 */
.chart-section canvas {
    background-color: white;
}

/* X轴设置区域样式 */
.x-axis-settings {
    text-align: center;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    width: 100%;
}

/* 统一按钮颜色方案 */
:root {
    --primary-color: #3498db;    /* 主按钮蓝色 */
    --primary-hover: #2980b9;    /* 主按钮悬停色 */
    --secondary-color: #2ecc71;  /* 次要按钮绿色 */
    --secondary-hover: #27ae60;  /* 次要