@font-face {
    font-family: 'HarmonyOS_Sans_SC';
    src: url('../fonts/HarmonyOS_Sans_SC.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

/* @font-face {
    font-family: 'HarmonyOS_Sans_SC';
    src: url('../fonts/HarmonyOS_SansSC_Bold.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
} */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    font-size: 0.75rem;
    color: #6c6c6c;
}

.page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.header {
    color: #343535;
    background: linear-gradient(to bottom, #dbdcdc 0%, #dbdcdc calc(50% - 4px), #cdcece 100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #c1c2c2;
}

.header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

.title {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
}

.title2 {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 0.75rem;
    font-weight: 600;
}

#version {
    font-size: 0.875rem;
}

#information {
    font-size: 0.75rem;
}

#download {
    font-size: 0.875rem;
    color: #343535;
    background-color: #eeeeee;
    border: none;
    padding: 0.4rem 1.2rem;
    border-radius: 0.25rem;
}

#download:active {
    background-color: #c9c9c9;
}

.main {
    display: flex;
    flex-direction: row;
    flex-grow: 1;
    overflow: hidden;
}

.left {
    height: 100%;
    width: 30%;
    min-width: 12rem;
    padding: 1rem;
    padding-right: calc(1rem - 2px);
    background-color: #f1f2f2;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
}

.divider {
    width: 5px;
    cursor: col-resize;
    height: 100%;
    z-index: 10;
    border-left: 2px solid rgba(255, 255, 255, 0);
    border-right: 2px solid rgba(255, 255, 255, 0);
    margin-left: -2px;
    margin-right: -2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.color {
    background-color: #cccccc;
    height: 100%;
    width: 1px;
}

.right {
    overflow-y: auto;
    height: 100%;
    padding: 1rem;
    padding-left: calc(1rem - 2px);
    background-color: #fff;
    flex-grow: 1;
}

.settings {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
}

.logo-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
}

.logo {
    width: 5rem;
    height: 5rem;
    padding: 0.25rem;
    background-color: #f1f2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.logo-image {
    width: 3rem;
    height: 3rem;
}

.logo-title {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1rem;
}

.logo:hover {
    border: 1.5px solid #0065ea;
}
/* when .logo selected, set backgroud-color of .logo to #c5c6c6 */


.product-image-container {
    width: 10rem;
    height: 10rem;
    min-width: 10rem;
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    border: 1.5px solid #c1c2c2;
    overflow: hidden;
    cursor: pointer;
    background-color: #fff;
}

.no-product-image {
    width: 8rem;
    height: 8rem;
    font-size: 0.75rem;
    font-weight: 400;
    border: 1.5px dashed #c1c2c2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-image-container:hover {
    border: 1.5px solid #0065ea;
    color: #0065ea;
}

.product-image-container:hover .no-product-image {
    border: 1.5px dashed #0065ea;
    color: #0065ea;
}

.product-image-panel {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
}

.product-image {
    max-height: 10rem;
    min-height: 10rem;
}

/* 表格样式 */
.control-table {
    border-collapse: collapse;
    /* min-width: 16rem; */
}

.control-table td {
    padding: 0.25rem 0.25rem 0.25rem 0;
    vertical-align: middle;
}

.field-title {
    /* width: 4rem; */
    text-align: right;
}

.control-table input[type="text"] {
    width: 12rem;
    padding: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #c1c2c2;
    border-radius: 0.25rem;
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
}

.control-table input[type="number"] {
    width: 6rem;
    padding: 0.25rem;
    font-size: 0.75rem;
    border: 1px solid #c1c2c2;
    border-radius: 0.25rem;
    font-family: 'HarmonyOS_Sans_SC', sans-serif;
}

.selected {
    background-color: #c5c6c6;
}

.konvajs-content {
    box-sizing: content-box;
    border: 1px solid #c1c2c2;
}
/* 
#container {
    cursor: pointer;
} */