* {
    margin: 0;
    padding: 0;
}

:root {
    --height: 36px;
    --mix-width: 800px;
}

html {
    scroll-behavior: smooth;
}

.top {
    position: fixed;
    margin-top: 0px;
}

.header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #d5d5d5;
    min-width: var(--mix-width);
    width: 100vw;
}

.header_title,
.header_home {
    background-color: #96969600;
    width: 160px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    margin: 0px auto;
    min-width: var(--mix-width);
    width: 60vw;
    padding-top: 70px;
}

/* 输入条样式 */
.contain {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    /* background-color: #0000003f; */
}

.get_value {
    display: flex;
    flex-direction: row;
    height: var(--height);
}

.get_value div {
    margin: 0 10px;
}

/* 输入框提示 */
.get_value_tips {
    line-height: var(--height);
}

/* 输入框 */
.get_value_input {
    width: 260px;
    height: var(--height);
    font-size: 18px;
    padding: 10px;
}

/* 转换按钮 */
.get_value_btn {
    width: 160px;
    height: var(--height);
    font-size: 20px;
}

/* 开发模式 */
.dev_mode {
    line-height: var(--height);
    margin: 0 10px;
}

/* 输出样式 */
.output {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    /* background-color: #9a9393; */
    height: auto;
    width: auto;
    margin-left: -2px;
    /*修正border左右的1px*/
    margin-bottom: 50px;
}

/* 结果框 */
.output_msg {
    height: auto;
    min-height: var(--height);
    /* width: calc(60vw); */
    min-width: var(--mix-width);
    font-size: 20px;
    border: 1px #000000 solid;
    line-height: 140%;
    margin-bottom: 10px;
}

/* 提示信息条 */
.output_tips {
    height: auto;
    min-height: var(--height);
    /* width: calc(60vw); */
    min-width: var(--mix-width);
    font-size: 20px;
    border: 1px #000000 solid;
    line-height: var(--height);
    margin-bottom: 10px;
}

.output_tips p {
    margin: 0 10px;
}

.output_msg>div {
    border-bottom: 1px #ccc dashed;
    margin: 10px;
    word-break: break-all;
}

.output_msg>div:last-of-type {
    border: none;
}

.output_msg span {
    border-top: 2px #000 solid;
    display: inline-block;
    margin-top: 4px;
}

.output_msg span b {
    border-top: 2px #000 solid;
    display: inline-block;
    font-weight: normal;
    margin-top: 2px;
}


/* 规则显示区 */
.rule_message {
    /* display: flex; */
    border: 1px #000000 solid;
}

.roman_info,
.roman_rule,
.roman_example {
    margin: 6px 10px;
    padding: 4px 4px 10px;
    border-bottom: 1px #ccc groove;
    /*dashed*/
}

.roman_example:last-of-type {
    border: none;
}

.rule_list {
    padding: 4px 4px 6px;
    border-bottom: 1px #ccc dashed;
}

.rule_list:last-of-type {
    border: none;
}




/* 响应式布局 - 媒体查询 */
@media screen and (max-width: 800px) {
    :root {
        --height: 36px;
        --mix-width: 360px;
    }

    #input {
        display: none;
    }

    .wrapper {
        padding-top: 60px;
        /* 调整以适应较小屏幕 */
        width: 90vw;
        /* 更好地适应小屏幕 */
    }

    .extra_development {
        display: none;
    }

    .contain {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* background-color: #0000003f; */
    }

    .get_value {
        display: flex;
        flex-direction: column;
        height: auto;
        /* 调整为自动以适应内容 */
        /* 确保与下方输出区域不重叠 */
    }

    .get_value div {
        margin: 0 0px;
    }

    .get_value_input,
    .get_value_btn {
        width: calc(100% - 4px);
    }

    .get_value_input {
        margin-bottom: 10px;
    }


    .output {
        margin-top: 20px;
        width: 100%;
        /* 确保输出区域与上方输入区域之间有足够的间距 */
    }
}