/* 全局页面初始化 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    background-color: #f7f9fc;
    padding: 20px;
    gap: 20px;
}

/* 左侧工作区样式 */
.workspace {
    flex: 1;
    background: #ffffff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

canvas {
    border: 1px dashed #d1d5db;
    border-radius: 50%;
    background: #fafafa;
    transition: border-color 0.2s;
}

canvas:hover {
    border-color: #4a90e2;
}

.tips {
    margin-top: 15px;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

.tips b {
    color: #2563eb;
}

/* 右侧定制面板样式 */
.panel {
    width: 380px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #1f2937;
    border-bottom: 2px solid #f3f4f6;
    padding-bottom: 12px;
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 12px;
}

/* 珠子选项网格布局 */
.bead-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px;
    margin-bottom: 25px;
}

.bead-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.bead-item:hover {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(37,99,235,0.08);
}

/* 材质选项中的圆珠小预览 */
.bead-preview {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: inset -4px -4px 8px rgba(0,0,0,0.25), 2px 2px 4px rgba(0,0,0,0.1);
}

/* 底部结算状态盒 */
.status-box {
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px;
    margin-top: auto;
    border: 1px solid #f3f4f6;
}

.status-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
    color: #374151;
}

.total-price {
    font-size: 24px;
    color: #dc2626;
    font-weight: 700;
}

.btn-submit {
    width: 100%;
    background: #2563eb;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(37,99,235,0.2);
}

.btn-submit:hover {
    background: #1d4ed8;
}
