/***********************************************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
********************************分割线************************************************
***********************************************************************************/
.header {
    top: 0;
    padding-top: 5px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--color-secondary);
}

.footer {
    bottom: 0;
}

.header h1,
.header .title {
    display: block;
    font-size: 100%;
    margin: 0 auto;
    text-align: center;
    height: 35px;
    line-height: 35px;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    font-weight: bold;
}

.main {
    padding: 20px;
}

.icon-back {
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    line-height: 16px;
    left: 10px;
    top: 10px;
    background-image: url(/stylesheets/images/icons-svg/carat-l-black.svg);
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.icon-more {
    display: block;
    position: absolute;
    width: 16px;
    height: 16px;
    line-height: 16px;
    right: 20px;
    top: 10px;
    font-size: 20px;
    color: #FFF;
    cursor: pointer;
}

.m-no-svg .icon-back {
    background-image: url(/stylesheets/images/icons-png/carat-l-black.png);
}

/*
[data-role='footer']{
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 80px;
}*/
.page {
    width: auto;
    position: fixed;
    top: 0;
    bottom: 0;
    overflow: hidden;
    padding-top: 45px;
    padding-bottom: 45px;
    min-width: 100px;
    outline: 0.7px solid var(--color-secondary);
}

.page .main {
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    top: 45px;
    bottom: 45px;
    left: 0;
    right: 0;
}

.header,
.footer {
    position: absolute;
    left: 0;
    right: 0;
    display: block;
    height: 35px;
}

/*下面这行代码在Edge里完美的崩了
@media screen and (orientation: portrait){
    .page{
        display: none;
        left: 0;
        right: 0;
    }
    .page:target{
        display: block;
    }
}
@media screen and (orientation: portrait){
    .page#main{
        left: 0;
        width: 300px;
    }
    .page#communicate{
        left: 300px;
        right: 0;
    }
    .icon-back{
        display: none;
    }
}
*/

#gangwei {
    position: relative;
    height: 28px;
}

#gangwei select {
    padding-left: 53px;
}

#gangwei::before {
    content: "岗位：";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    line-height: 28px;
    padding-left: 5px;
    padding-right: 5px;
    background-color: var(--color-primary);
    color: var(--txt-primary);
    border-right: 1px solid var(--color-secondary);
    font-weight: bold;
}

#send {
    position: absolute;
    left: 0;
    bottom: 6px;
    /*right: 60px;*/
    height: 28px;
    resize: none;
    width: calc(100% - 90px);
    padding-right: 30px;
    border: 1px solid var(--color-secondary);
    outline: none;
    font-family: 'Times New Roman', Times, SimSun, serif;
    overflow: hidden;
}

#send:focus {
    height: 80px;
    border: 3px solid var(--color-secondary);
    overflow: auto;
}

#send:disabled {
    background-color: var(--color-secondary);
    cursor: not-allowed;
}

#chat>p {
    margin-top: 30px;
}

#chat>p>span {
    display: block;
    float: left;
    padding: 6px;
}

#chat>p.mine>span {
    float: right;
}

/*
#chat>p:not(.mine)>.chat-name::after{
    content: ': ';
    display: inline-block;
    width: 1em;
}
#chat>p.mine>.chat-name::before{
    content: ': ';
    display: inline-block;
    width: 1em;
}
*/
#chat>p>.chat-name {
    user-select: none;
}

#chat>p>.chat-msg {
    border-radius: 4px;
    color: #ffffff;
    --color: #0066ff;
    --icon: 8px;
    background-color: var(--color);
    position: relative;
    /*
    user-select: none;
    -webkit-user-select: none;
    */
    user-select: auto;
    -webkit-user-select: auto;
    -moz-user-select: auto;

    cursor: pointer;

    max-width: 60%;
    word-break: break-all;
    word-wrap: break-word;
}

#chat>p>.chat-msg::before {
    content: attr(data-time);
    position: absolute;
    top: -20px;
    font-size: 12px;
    color: #cccccc;
    width: 90px;
}

#chat>p.mine>.chat-msg {
    --color: #00e045;
}

#chat>p:last-of-type>.chat-msg {
    outline: 1px solid var(--color-secondary);
}

#chat>p>.chat-msg::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border: calc(var(--icon)/2) solid transparent;
    position: absolute;
    top: 8px;
}

#chat>p:not(.mine)>.chat-msg::after {
    border-right-color: var(--color);
    left: calc(0px - var(--icon));
}

#chat>p:not(.mine)>.chat-msg::before {
    left: 0;
    text-align: left;
}

#chat>p.mine>.chat-msg::after {
    border-left-color: var(--color);
    right: calc(0px - var(--icon));
}

#chat>p.mine>.chat-msg::before {
    right: 0;
    text-align: right;
}

.unread::after {
    content: "";
    float: right;
    margin: 3px;
    border-radius: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--color-tertiary);
}

.menu {
    display: none;
    position: fixed;
    top: 28px;
    right: 10px;
    width: 200px;
    border-radius: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-top: none;
    overflow: hidden;
}

.menu li {
    background-color: var(--color-tertiary);
    color: var(--txt-tertiary);
    border: none;
}

.menu li.brand {
    background-color: var(--color-primary);
    color: var(--txt-primary);
}

.menu-active {
    display: block;
}

.gap {
    border-bottom: 1px solid var(--color-secondary);
}

.apps .app {
    display: inline-block;
    vertical-align: top;
    width: 40px;
    height: 60px;
    padding: 10px;
    margin: 2px;
    cursor: pointer;
    border-radius: 6px;
}

.apps .app:hover {
    background-color: var(--color-secondary);
}

.apps .app img {
    display: block;
    width: 40px;
    height: 40px;
    border: 0;
    user-select: none;
    background-color: #ffffff;
    border-radius: 5px;
}

.apps .app span {
    display: block;
    text-align: center;
    color: var(--color-secondary);
    font-size: 10px;
    padding-top: 5px;
}

.tag {
    position: absolute;
    right: 0;
    top: 0;
    padding: 5px;
    margin: 10px;
    color: #ffffff;
    font-weight: normal;
    font-size: 80%;
    border: 1px solid var(--color-secondary);
    border-radius: 6px;
    cursor: help;
    user-select: none;
    transform: translateX(0);
    transition: transform 1s linear;
}

.unread~.tag {
    transform: translateX(-32px);
}

a.file {
    display: block;
    width: 200px;
    background-color: inherit;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    padding: 10px 30px;
}

span.filename {
    display: block;
    font-size: 30px;
    width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.theme-menu {
    position: fixed;
    left: 0;
    bottom: 0;
    display: none;
    max-width: 200px;
    height: 200px;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-all;
    user-select: none;
    background-color: var(--color-secondary);
    opacity: 0.7;
}

.theme-menu>button {
    margin-bottom: 2px;
}

.try-btn {
    position: fixed;
    top: 0;
    right: 0;
    margin: 10px;
}

.placeholder {
    position: absolute;
    bottom: 10px;
    right: 100px;
    color: var(--color-secondary);
    font-size: 12px;
    user-select: none;
    cursor: text;
}

#ctmenu {
    position: fixed;
    display: none;
    background-color: #ffffff66;
    width: 200px;
    overflow: hidden;
}

#coins{
    display: inline-block;
    width: 80px;
    height: 25px;
    font-size: 15px;
    text-align: center;
    line-height: 20px;
    border-radius: 10px;
    background-color: #fbc208;
    border: 2px solid #d37800;
    color: #ffffff;
    margin-bottom: 8px;
    cursor: pointer;
}

#coins .coin{
    color: #d37800;
}