/* 基础样式 */
:root {
    --primary-color: #4a6fa5;
    --secondary-color: #6b8cb7;
    --accent-color: #e76f51;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --light-text: #ffffff;
    --border-color: #ced4da;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --target-param-active-color: #c2e1ff;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 16px;
    background-color: #f0f4f8;
    color: var(--dark-text);
    line-height: 1.6;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}



@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}



#translate_history {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    max-width: 100%;
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

#result,
#det {
    width: 100%;
    box-sizing: border-box;
}

.matrix-container {
    overflow-x: auto;
    width: 100%;
    margin: 15px 0;
}

/* 更多按钮和下拉菜单样式 */
.more-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.more-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.more-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    visibility: hidden;
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--dark-text);
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

/* more-container下的按钮样式 */
.more-container button.dropdown-item {
    background-color: #e6f3ff;
    /* 淡蓝色背景 */
    color: #000000;
    /* 黑色文字 */
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    margin: 0;
    /* 去除外边距 */
    padding: 8px 12px;
    /* 调整内边距，减少间距 */
}

.more-container button.dropdown-item:hover {
    background-color: #d4e7ff;
    /* 悬停时稍深的淡蓝色 */
    color: #000000;
    /* 保持黑色文字 */
}

/* 去除下拉菜单中按钮之间的间距 */
.more-container .dropdown-menu {
    padding: 0;
    /* 去除菜单内边距 */
}

.more-container .dropdown-item {
    margin: 0;
    /* 去除菜单项的外边距 */
}

.dropdown-item:last-child {
    border-bottom: none;
}

.flex-column {
    display: flex;
    flex-direction: column;
}
