/**
 * G9D UI 旗下 Water UI Kit
 * @author: fftt52536
 * @version: preview
 * @description: 这是一个基于 G9D UI Kit 的 Water UI 主题，对于特定的模块优化了样式。
 * @license: MIT
 */

/* TIP: 应确保已引用 web.css（即 G9D UI 源文件）。 */

/* - 重载主题以适应 G9D UI */
:root {
    --color-primary: #0048ff;
    --txt-primary: #ffffff;
    --color-secondary: #929292;
    --txt-secondary: #f7f7f7;
    --color-tertiary: #a4a4a4;
    --txt-tertiary: #f4f4f4;
    --color-bg: #fcfcfc;
    --txt-bg: #3d3d3d;

    --color-water: #F6F9FC;
    --color-water-alpha: #F6F9FCEE;
    --color-water-transparent: #F6F9FCCC;
    --water-gap: 1.5rem;
}

/* - 标签样式 */
.tag {
    display: inline-block;
    font-weight: normal;
    border-radius: 3px;
    font-size: 80%;
    line-height: 1.25em;
    padding-left: 5px;
    padding-right: 5px;
    color: #ffffff;
    cursor: pointer;
    text-shadow: none;
}
.tag-up {
    /* 以上角标位置呈现，但不能使用vertical-align */
    position: relative;
    top: -10px;
    font-size: 50%;
}

/* - Water APP UI */
.water-app {
    background-color: var(--color-water-transparent);
    color: #222222;
    border-radius: 20px;
    transition: all .2s ease-in-out;
    min-width: 130px;
    min-height: 80px;
    box-shadow: 0 0 10px var(--color-secondary);
    margin-bottom: var(--water-gap);
}

.water-app:hover {
    filter: brightness(.95);
    box-shadow: 0 0 30px #2222226d;
}

.water-app-bar {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 14px;
    padding-bottom: 7px;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
}

.water-app-actions {
    list-style: none;
    margin: 0;
    display: flex;
}

.water-app-actions>* {
    /* width: 30px; */
    padding-left: 5px;
    padding-right: 5px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    color: #222222;
    border-radius: 6px;
    background-color: #b9b9b92f;
    cursor: pointer;
}

.water-app-actions>*:hover {
    background-color: #b9b9b95b;
    text-decoration: none;
}

.water-app-inner {
    padding-left: 14px;
    padding-right: 14px;
    padding-top: 4px;
    padding-bottom: 14px;
}


/* - 浮动导航栏 */
body {
    margin: var(--water-gap);
    padding: 0;
}

:root {
    --f-nav-height: 55px;
}

.f-nav {
    font-size: 20px;
    background-color: var(--color-water-transparent);
    z-index: 100;
    color: #222222;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    right: 0;
    /*height: var(--f-nav-height);*/
    line-height: var(--f-nav-height);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-family: "等线", "微软雅黑", sans-serif;
    font-weight: 100;
    box-shadow: var(--color-secondary) 0 0 10px;
    cursor: inherit;
    overflow: hidden;
    transform-origin: 0 0;
    transition: all .2s ease-in-out;
    z-index: 125;
}

.f-nav-shadow {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #00000033;
    z-index: 124;
}

.f-nav-group {
    display: flex;
    cursor: inherit;
    flex-wrap: wrap;
}

.f-nav-item {
    line-height: var(--f-nav-height);
    vertical-align: middle;
    padding-left: 6px;
    padding-right: 6px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    text-decoration: none;
    cursor: inherit;
}

.f-nav-item>:not(.f-ignore-line-height) {
    vertical-align: middle;
}


.f-nav a {
    color: inherit;
}

.f-nav-item.f-hoverable {
    cursor: pointer;
}

.f-nav-item.f-hoverable:hover {
    /* background-color: #aaaaaa2f; */
    box-shadow: inset 0 0 10px #22222229;
}

.f-nav-gap {
    margin-top: var(--f-nav-height);
    height: var(--water-gap);
}

.f-nav-opener {
    display: none;
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3em;
    height: 3em;
    line-height: 3em;
    text-align: center;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: var(--color-secondary) 0 0 10px;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    z-index: 123;
}

.f-nav-opener:hover {
    filter: brightness(.95);
}

@media screen and (max-width: 650px) {
    .f-nav:not(.f-nav-visible) {
        transform: scaleY(0);
    }
    .f-nav.f-nav-visible + .f-nav-shadow {
        display: block;
    }
    .f-nav-gap {
        margin: 0;
        height: 0;
    }

    .f-nav {
        flex-direction: column;
    }
    .f-nav-opener {
        display: block;
    }
}

.f-nav-icon {
    display: inline-block;
    width: 1.6em;
    height: 1.6em;
    border: 1px solid #22222222;
    border-radius: .25em;
}

.f-nav-app {
    cursor: pointer;
}

/* - 图标样式 */
.icon {
    display: inline-block;
    border-radius: 50%;
    margin: 10px;
    width: 1.6em;
    height: 1.6em;
    line-height: 1.6em;
    vertical-align: middle;
    display: inline-flex;
}

.icon-font {
    font-size: 100%;
}

.icon-inline {
    margin: 0;
    margin-left: .1em;
    margin-right: .1em;
    width: 1em;
    height: 1em;
    line-height: 1em;
}

.icon>* {
    display: block;
}

/* - BESTs */
.best-table {
    width: 100%;
    border-collapse: collapse;
}

.best-table tr+tr {
    border-collapse: collapse;
    border-top: 1px solid #cccccc;
}

.best-table tr>td {
    line-height: 1.6em;
    font-family: sans-serif;
}