/* CSS 变量定义 */
:root {
    --bg-color: #fff;
    --text-color: #555;
    --border-color: gray;
    --input-border: gray;
    --button-bg: rgb(235, 235, 235);
    --button-hover-bg: rgb(245, 245, 245);
    --button-text: #555;
    --slogan-color: gray;
    --info-color: rgb(180, 180, 180);
    --info-border: rgb(221, 221, 221);
    --more-border: rgb(209, 209, 209);
    --link-color: gray;
    --icon-color: gray;
    --fs-bg: white;
}

/* 夜间模式 */
body.dark {
    --bg-color: #262626;
    --text-color: #e0e0e0;
    --border-color: #444;
    --input-border: #555;
    --button-bg: #3a3a3a;
    --button-hover-bg: #4a4a4a;
    --button-text: #e0e0e0;
    --slogan-color: #888;
    --info-color: #888;
    --info-border: #444;
    --more-border: #444;
    --link-color: #888;
    --icon-color: #888;
    --fs-bg: #262626;
}

body, div {
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100%;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    transition: background-color 0.3s, color 0.3s;
}
.main {
    margin: 110px auto 16px auto;
    max-width: 730px;
    color: var(--text-color);
    font-size: 24px;
}

/* 主题切换文字 */
.theme-toggle {
    color: var(--icon-color);
    cursor: pointer;
    user-select: none;
    margin-right: 4px;
    transition: color 0.3s;
}
.theme-toggle:hover {
    color: var(--text-color);
}
.theme-divider {
    color: var(--icon-color);
    margin-right: 8px;
    user-select: none;
}
.ip-box {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 8px;
}
.ip-top {
    display: flex;
    justify-content: space-between;
}
.ip-top .slogan {
    color: var(--slogan-color);
    margin-left: 0px;
}
.ip-top .slogan:before {
    content: "说点啥呢？";
}
.ip-top .post-ok {
    color: rgb(1, 107, 1);
    animation: post-ok-amt 0.6s;
    margin-right: 0px;
}
@keyframes post-ok-amt {
    from { color: rgb(221, 221, 221); }
    to { color: rgb(1, 107, 1); }
}
.ip-msg-wrap {
    margin-top: 5px;
    height: 100%;
    overflow-y: auto;
    border: 1px solid var(--input-border);
}
.ip-msg-wrap.is-select {
    border-color: skyblue;
}
body.dark .ip-msg-wrap.is-select {
    border-color: #4a9eff;
    box-shadow: inset 0 0 2px rgba(74, 158, 255, 0.5);
}
#input-div {
    text-align: left;
    min-height: 100px;
    padding: 6px;
    border: none;
    outline: none;
    letter-spacing: 0.01em;
}
.ip-bt-wrap {
    width: 100%;
    display: flex;
    margin-top: 8px;
    justify-content: space-between;
    align-items: center;
}
.ip-bt-wrap > div {
    display: inline-flex;
    align-items: center;
}
.ip-bt-wrap span {
    margin-left: 2px;
    color: var(--link-color);
    cursor: pointer;
}
.ip-bt-wrap a {
    margin-left: 2px;
    text-decoration: none;
    color: var(--link-color);
}
.ip-bt-wrap i {
    color: var(--icon-color);
    margin-right: 8px;
    font-size: 22px;
    font-style: normal;
}
.ip-bt-wrap button {
    width: 80px;
    height: 30px;
    font-size: 18px;
    color: var(--button-text);
    outline: none;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    background-color: var(--button-bg);
    user-select: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
@media screen and (min-width: 600px) {
    .ip-bt-wrap button:hover {
        background-color: var(--button-hover-bg);
    }
}
.post-bt {
    box-shadow: inset 1px 1px 3px rgb(177, 177, 177);
}
.content-wrap {
    padding: 20px 8px 8px 8px;
}
.content {
    letter-spacing: 0.01em;
}
.buzz-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    min-height: 100px;
}
.buzz-item p {
    text-align: justify;
    word-break: break-word;
    line-height: 1.6em;
    white-space: pre-line;
}
.buzz-info {
    text-align: right;
    color: var(--info-color);
    border-bottom: 2px dashed var(--info-border);
    font-size: 18px;
}
.login-mode {
    width: 100%;
    position: absolute;
    display: flex;
    justify-content: right;
}
.login-mode span {
    display: none;
    cursor: pointer;
    color: rgb(194, 194, 194);
    font-size: 28px;
    line-height: 1;
    padding: 0 4px;
}
.buzz-box:hover > .login-mode span {
    display: block;
}
.login-mode span:hover {
    color: rgb(32, 32, 32);
}
.more, .no-more {
    margin: 30px 0 12px 0;
    cursor: pointer;
    text-align: center;
    height: 40px;
    line-height: 40px;
    border: 2px solid var(--more-border);
    border-radius: 3px;
    transition: background-color 0.3s;
}
.more:hover {
    background-color: var(--button-bg);
}
.no-more {
    background-color: transparent;
    cursor: default;
}
/* .is-select 已移至 .ip-msg-wrap 下方 */
.guest-mode {
    margin: 0 8px 90px 8px;
}
.guest-mode img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
@media screen and (max-width: 960px) {
    .main {
        margin: 60px auto 16px auto;
    }
}
@media screen and (max-width: 600px) {
    .main {
        font-size: 18px;
        margin: 0px auto;
    }
    #input-div {
        min-height: 75px;
    }
    .guest-mode {
        margin: 8px 8px 30px 8px;
    }
    .ip-bt-wrap i {
        font-size: 18px;
    }
    .ip-bt-wrap button {
        font-size: 16px;
    }
    .ip-msg-wrap {
        margin-top: 3px;
    }
    .buzz-info {
        font-size: 14px;
    }
}
.is-animate {
    animation: buzz-input-amt 1.2s;
}
@keyframes buzz-input-amt {
    from { opacity: 0; }
    to { opacity: 1; }
}
.count-out {
    background-color: pink;
    padding: 2px 6px;
    border-radius: 3px;
}
.fs-body {
    display: none;
}
.fs-input-box {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--fs-bg);
    z-index: 100;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s;
}
.fs-input-box .ip-top {
    padding: 8px 8px 0 8px;
    flex-shrink: 0;
}
.fs-input-box .ip-msg-wrap {
    margin: 5px 8px;
    flex: 1;
    min-height: 0;
}
.fs-input-box .ip-bt-wrap {
    padding: 0 8px 8px 8px;
    flex-shrink: 0;
    box-sizing: border-box;
}
@media screen and (max-width: 600px) {
    .fs-input-box {
        transition: height 0.1s ease-out;
    }
}
