/*各界面共用部分开始*/
* {
    font-family: arial,sans-serif;
}

html {
    width: 100%;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.header {
    background: #333;
    color: #fff;
    padding: 10px 0;
    width: 100%;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.nav-item {
    margin: 0 20px;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    padding: 7px 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.nav-link.active,
.nav-link:hover,
.nav-link:focus {
    background: #444;
    border-color: #fff;
}

.content {
    flex-grow: 1;
}

/* Footer Styles */
.footer {
    background: #333;
    color: #fff;
    padding: 20px 0;
    bottom: 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}


.standard-main,
.science-main,
.programmer-main {
    background-color: #F2F2F2;
    margin: 40px auto 0px;
    box-shadow: 0px 0px 15px #4D4D4D;

    /* no selection of text */
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE/Edge */
    user-select: none;          /* 标准语法 */
}

ul {
    list-style: none;
    margin: 0px;
    padding: 0px;
}

li {
    float: left;
    text-align: center;
    cursor: pointer;
}

li img {
    height: 14px;
}

.title {
    height: 30px;
    line-height: 30px;
}

.result {
    height: 120px;
    text-align: right;
}

.second {
    font-size: 40px;
    font-weight: bold;
    padding-right: 10px;
}

.pre {
    color: #A7A7A7;
    padding-right: 10px;
}

/*计算器类型*/
.type {
    height: 20px;
    text-align: left;
    margin-left: 10px;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
}

/*类型选择侧边栏*/
.type-bar {
    display: none;
    height: 90px;
    width: 100px;
    position: absolute;
    top: 110px;
    background-color: #E6E6E6;
}

.type-bar li {
    float: left;
    width: 100px;
    text-align: center;
    line-height: 30px;
}

.active {
    background-color: #CFCFCF;
}

/*数字加粗*/
.number {
    font-weight: bold;
}

/*共用部分结束*/

/*计算器标准版界面开始*/
.standard-main {
    width: 350px;
    height: 480px;
}

#std-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 52px;
}

#std-num-symbol {
    background-color: #E6E6E6;
    height: 270px;
    font-size: 20px;
}

#std-top-symbol li,
#std-num-symbol li {
    line-height: 52px;
    width: 87.5px;
}

/*标准界面结束*/

/*科学型界面开始*/
.science-main {
    display: none;
    width: 350px;
}

.sci-result {
    height: 120px;
    text-align: right;
}

#sci-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 135px;
}

#sci-top-symbol li,
#sci-num-symbol li {
    line-height: 45px;
    width: 70px;
}

#sci-num-symbol {
    height: 235px;
    background-color: #E6E6E6;
}

/*科学型界面结束*/

/*程序员型界面开始*/
.programmer-main {
    display: none;
    width: 350px;
}

.pro-result {
    height: 220px;
    text-align: right;
}

#pro-top-symbol {
    border-top: 1px #A7A7A7 solid;
    height: 45px;
}

#pro-top-symbol li {
    line-height: 45px;
    width: 58px;
}

#pro-num-symbol li {
    line-height: 45px;
    width: 70px;
}

#pro-num-symbol {
    height: 235px;
    background-color: #E6E6E6;
}

/*四个进制*/
#pro-scales {
    margin-left: 20px;
}

#pro-scales div {
    text-align: left;
    margin-top: 5px;
    cursor: pointer;
}

/*当前使用的进制*/
.scale-active {
    color: cornflowerblue;
}

/*按键不可用*/
.disable-btn {
    color: #CACACA;
}

/*程序员型界面结束*/