body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    color: #333;
    position: relative; /* 为绝对定位的伪元素提供参考 */
    overflow: auto; /* 允许滚动 */
    z-index: 1; /* 使内容显示在伪元素之上 */
}

/* 左侧背景图 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15%; /* 设定宽度为15% */
    height: calc(100% - 60px); /* 高度减去上下外边距 */
    margin: 30px 0; /* 上下外边距为10px */
    background-size: cover; /* 背景图像覆盖 */
    background-position: center; /* 图像居中 */
    background-repeat: no-repeat; /* 防止图像重复 */
    background-image: var(--left-bg-image);
    z-index: -1; /* 确保处于底层 */
    border-radius: 20px; /* 圆角 */
}

/* 右侧背景图 */
body::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0; /* 右侧对齐 */
    width: 15%; /* 设定宽度为15% */
    height: calc(100% - 60px); /* 高度减去上下外边距 */
    margin: 30px 0; /* 上下外边距为10px */
    background-size: cover; /* 背景图像覆盖 */
    background-position: center; /* 图像居中 */
    background-repeat: no-repeat; /* 防止图像重复 */
    background-image: var(--right-bg-image);
    z-index: -1; /* 确保处于底层 */
    border-radius: 20px; /* 圆角 */
}
.wrapper {
    display: flex; /* 使用Flexbox布局 */
    justify-content: center; /* 水平居中 */
    align-items: flex-start; /* 在交叉轴上对齐 */
    flex-wrap: wrap; /* 允许换行 */
}
.container {
    width: 90%;
    max-width: 700px;
    flex: 1;
    margin: 10px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 2px solid #ddd; /* 边框 */
    border-radius: 15px; /* 圆角效果 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}
.container h1 {
    text-align: center;
    margin-bottom: 20px;
}
.container p {
    font-size: 1.1em; /* 字体大小 */
    margin-bottom: 10px;
}
.textarea-container {
    position: relative;
}
.textarea-container textarea {
    width: calc(100% - 30px); /* 减去按钮宽度和内边距 */
    height: 180px; /* 高度调整 */
    padding: 10px; /* 内边距 */
    border: 1px solid #ccc;
    border-radius: 10px; /* 更圆滑的边角 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); /* 内阴影效果 */
    transition: border-color 0.3s; /* 边框颜色变化 */
    font-size: 1.1em; /* 字体大小 */
    resize: none; /* 禁止缩放 */
}
.textarea-container textarea:focus {
    border-color: #FF6699; /* 聚焦时的边框颜色 */
    outline: none; /* 去掉聚焦的轮廓 */
}
.copy-btn {
    position: absolute;
    top: 10px;
    right: 17px; /* 与textarea左右对齐 */
    background-color: rgba(212, 212, 212, 0.5); /* 按钮背景 */
    color: black;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s; /* 按钮背景色变化 */
}
.copy-btn:hover {
    background-color: rgba(212, 212, 212, 1); /* 悬停效果 */
}
#error {
    color: #FF6699;
    margin-top: 10px;
    font-weight: bold; /* 错误信息加粗 */
}
.button-group {
    display: flex;
    justify-content: space-between; /* 按钮元素均匀分布 */
    margin: 10px;
}
.button-group button {
    padding: 10px 40px;
    background-color: rgba(255, 102, 153, 0.7); /* 按钮颜色 */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s; /* 按钮颜色变化 */
    font-size: 1.1em;
}
.button-group button:hover {
    background-color: rgba(255, 102, 153, 1); /* 悬停效果 */
}
.input-group{
    display: flex;
    justify-content: space-between; 
    align-items: center;
    margin: 0 10px;
}
.input-block {
    width: 220px;
    height: 25px;
    display: flex;
    justify-content: center; 
    align-items: center;
    border: 1px solid #000000;
    border-radius: 4px; /* 圆角 */
    gap: 8px;
}
#privateKeyContainer{
    width: 230px;
}
.label {
    font-size: 1em;
}
.input-block input {
    height: 19px;
    padding: 2px 3px; /* 内边距 */
    border: 1px solid #ccc;
    transition: border-color 0.3s; /* 边框颜色变化 */
    font-size: 1em; /* 字体大小 */
    resize: none; /* 禁止缩放 */
}
.input-block input:focus {
    border-color: #FF6699; /* 聚焦时的边框颜色 */
    outline: none; /* 去掉聚焦的轮廓 */
}
#encoderType {
    width: 80px;
}
#privateKey {
    width: 140px;
}
.icon i {
    font-size: 20px; /* 根据需要调整大小 */
    color: #FF6699; /* 图标颜色 */
    padding-top: 2px;
}

/* Toast Notification 样式 */
.toast {
    display: none;
    min-width: 250px;
    background-color: #333;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed; /* 使其固定在视窗中的某个位置 */
    z-index: 1;
    right: 10px; /* 距离页面右边10px */
    bottom: 10px; /* 距离页面底部10px */
    font-size: 17px;
}
.toast.show {
    display: block;
    animation: fadein 0.5s, fadeout 0.5s 2.5s; /* 动画效果 */
}
.profile-card {
    width: 250px; /* 设置个人资料卡的宽度 */
    background-color: #f9f9f9; /* 背景色 */
    border: 1px solid #ddd; /* 边框 */
    border-radius: 10px; /* 圆角 */
    padding: 20px; /* 内边距 */
    margin: 10px; /* 外边距 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* 阴影效果 */
    display: flex; /* 设置为Flexbox布局 */
    flex-direction: column; /* 纵向排列内部元素 */
    align-items: center; /* 水平居中对齐 */
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}
.profile-card h2 {
    margin: 10px 0;
    font-size: 22px;
}
.profile-card p {
    font-size: 14px;
}
.social-icons {
    display: flex; /* 使用Flexbox排列图标 */
    justify-content: center; /* 水平居中 */
    margin-top: 10px; /* 在图标和其他内容之间增加一些间距 */
}
.social-icons a {
    margin: 0 10px; /* 图标之间的水平间距 */
    font-size: 24px; /* 图标的大小 */
    position: relative; /* 为 tooltip 定位 */
    transition: color 0.3s; /* 颜色变化的过渡效果 */
}
/* 自定义颜色 */
.social-icons .github {
    color: #24292e; /* GitHub 图标初始颜色 */
}

.social-icons .blog {
    color: #ff6f00; /* Blog 图标初始颜色 */
}

.social-icons .bilibili {
    color: #FF6699; /* Bilibili 图标初始颜色 */
}

@keyframes fadein {
    from {opacity: 0;} 
    to {opacity: 1;}
}
@keyframes fadeout {
    from {opacity: 1;} 
    to {opacity: 0;}
}
/* 媒体查询：当屏幕宽度小于某个值时，调整flex方向 */
@media (max-width: 800px) {
    .wrapper {
        flex-direction: column; /* 改为垂直排列 */
        align-items: center; /* 垂直居中 */
    }
    .container {
        margin: 0;
        margin-bottom: 10px;
    }
    .profile-card {
        width: 250px; 
        margin: 0;
        margin-top: 10px;
    }
     /* 隐藏左右侧的图片 */
    body::before,
    body::after {
        background-image: none; /* 不显示图片 */
    }
}
@media(max-width: 600px)
{
    .input-group {
        flex-direction: column; /* 改为垂直排列 */
        align-items: center; /* 垂直居中 */
    }
    .input-block {
        margin: 5px;
    }

}
/* 黑夜模式 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212; /* 深色背景 */
        color: #ffffff; /* 白色文字 */
    }

    .container {
        background-color: #1e1e1e; /* 深色容器背景 */
        color: #ffffff; /* 白色文字 */
        border: 1px solid #ffffff;
    }

    textarea {
        background-color:#1e1e1e;
        color:#ffffff
    }
    .copy-btn {
        background-color: rgba(255, 255, 255, 0.4); /* 淡白色背景 */
        color: white; /* 白色文字 */
    }
    .copy-btn:hover {
        background-color: rgba(255, 255, 255, 0.2); /* 悬停效果 */
    }
    input {
        background-color:#1e1e1e;
        color:#ffffff;
        border: 1px solid #ffffff;
    }
    .input-block{
        border: 1px solid #ffffff;
    }
    .profile-card {
        background-color: #1e1e1e; /* 背景色 */
        border: 1px solid #1e1e1e; /* 边框 */
    }
    .social-icons .github {
        color: #9b9ea2; /* GitHub 图标初始颜色 */
    }
    .social-icons .blog {
        color: #e7863c; /* Blog 图标初始颜色 */
    }

}