@charset "UTF-8";

/*
 * Modern room theme
 *
 * This file intentionally sits on top of the legacy room styles. Business
 * selectors are preserved so the existing room/chat modules keep working.
 */

.room-modern {
    --room-line: #e5e7eb;
    --room-primary: #4f8cff;
    --room-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #fff !important;
}

.room-modern,
.room-modern * {
    box-sizing: border-box;
}

.room-modern a {
    transition: color 0.2s ease, background-color 0.2s ease,
        border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.room-modern ::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.room-modern ::-webkit-scrollbar-track {
    background: transparent;
}

.room-modern ::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.35);
}

.room-modern .layui-btn {
    border: 0;
    border-radius: 9px;
    background: var(--room-primary);
    box-shadow: none;
}

.room-modern .layui-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* H5 room shell ---------------------------------------------------------- */

html.room-mobile-page {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.room-modern-mobile {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: var(--room-mobile-viewport-height, 100dvh);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

.room-modern-mobile .chatArea-mobile button,
.room-modern-mobile .chatArea-mobile input,
.room-modern-mobile .chatArea-mobile textarea,
.room-modern-mobile .chatArea-mobile select,
.room-modern-mobile .chatArea-mobile [contenteditable="true"],
.room-modern-mobile .layui-layer button,
.room-modern-mobile .layui-layer input,
.room-modern-mobile .layui-layer textarea,
.room-modern-mobile .layui-layer select {
    font-family: inherit;
}

.room-modern-mobile.room-keyboard-open {
    transform: translate3d(0, var(--room-mobile-viewport-offset-top, 0px), 0);
}

.room-modern-mobile.room-keyboard-open .logo-index,
.room-modern-mobile.room-keyboard-open .videoArea-mobile {
    flex-shrink: 0;
}

.room-modern-mobile.room-keyboard-open .videoArea-mobile {
    height: calc(var(--room-mobile-viewport-height, 100dvh) - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: clamp(110px, calc(var(--room-mobile-viewport-height, 100dvh) - 172px - env(safe-area-inset-top) - env(safe-area-inset-bottom)), 62vw);
    min-height: 110px;
    max-height: 62vw;
}

.room-modern-mobile.room-keyboard-open .chatArea-mobile {
    flex: 1 1 auto;
    min-height: calc(122px + env(safe-area-inset-bottom));
}

.room-modern-mobile .logo-index {
    position: relative;
    z-index: 20;
    display: flex;
    flex: 0 0 calc(50px + env(safe-area-inset-top));
    align-items: center;
    width: 100%;
    padding: env(safe-area-inset-top) 14px 0;
}

.room-modern-mobile .logo-index img {
    display: block;
    width: 140px;
    max-width: 62vw;
}

.room-modern-mobile .videoArea-mobile {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 100%;
    height: 62vw;
    max-height: 360px;
    min-height: 220px;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--room-line);
    border-radius: 0px;
    background: #02060c;
    box-shadow: var(--room-shadow);
}

.room-modern-mobile .videoArea-mobile #videoDisplay,
.room-modern-mobile .videoArea-mobile #playerContainer,
.room-modern-mobile .videoArea-mobile #playerWrapper,
.room-modern-mobile .videoArea-mobile #id_TCP_video {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background: #02060c;
}

.room-modern #id_TCP_video.video-js,
.room-modern #id_TCP_video .vjs-tech {
    width: 100% !important;
    height: 100% !important;
    background: #02060c;
    object-fit: contain;
}

/* Enlarge TCPlayer controls and keep icon/text buttons on one center line. */
.room-modern .video-js .vjs-control-bar {
    align-items: center !important;
    height: 52px !important;
    padding: 0 4px;
    box-sizing: border-box;
}

.room-modern .video-js .vjs-control-bar > .vjs-control,
.room-modern .video-js .vjs-control-bar .vjs-button {
    height: 52px !important;
}

.room-modern .video-js .vjs-control-bar .vjs-button {
    flex: 0 0 52px;
    width: 52px !important;
    min-width: 52px;
}

.room-modern .video-js .vjs-control-bar .vjs-button > .vjs-icon-placeholder::before {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 52px !important;
    font-size: 26px !important;
    line-height: 1 !important;
}

.room-modern .video-js .vjs-play-control > .vjs-icon-placeholder::before {
    font-size: 30px !important;
}

/* “直播”红点会挤压移动端控制栏，播放器本身已处于直播模式，无需重复标记。 */
.room-modern .video-js .vjs-live-control,
.room-modern .video-js .vjs-live-display {
    display: none !important;
}

.room-modern .video-js .vjs-time-control {
    height: 52px !important;
    line-height: 52px !important;
}

/*
 * Mode 3 plays VOD MP4 files. Keep the seek bar on its own row so the
 * play, volume, time, rate and fullscreen controls never sit on top of it.
 */
.room-modern .player-mode-3 .video-js .vjs-control-bar {
    height: 70px !important;
    padding: 22px 4px 0;
}

.room-modern .player-mode-3 .video-js .vjs-progress-control {
    position: absolute !important;
    z-index: 2;
    top: 0;
    right: 10px;
    left: 10px;
    width: auto !important;
    height: 22px !important;
    margin: 0 !important;
}

.room-modern .player-mode-3 .video-js .vjs-progress-control .vjs-progress-holder {
    width: 100% !important;
    height: 5px;
    margin: 8px 0 0 !important;
}

.room-modern .player-mode-3 .video-js .vjs-control-bar > .vjs-control:not(.vjs-progress-control),
.room-modern .player-mode-3 .video-js .vjs-control-bar .vjs-button {
    height: 48px !important;
}

.room-modern .player-mode-3 .video-js .vjs-control-bar .vjs-button {
    flex-basis: 44px;
    width: 44px !important;
    min-width: 44px;
}

.room-modern .player-mode-3 .video-js .vjs-control-bar .vjs-button > .vjs-icon-placeholder::before {
    height: 48px !important;
    font-size: 23px !important;
}

.room-modern .player-mode-3 .video-js .vjs-play-control > .vjs-icon-placeholder::before {
    font-size: 27px !important;
}

.room-modern .player-mode-3 .video-js .vjs-time-control {
    width: auto !important;
    min-width: 0 !important;
    height: 48px !important;
    padding-right: 2px !important;
    padding-left: 2px !important;
    font-size: 13px !important;
    line-height: 48px !important;
}

.room-modern .player-mode-3 .video-js .vjs-volume-panel,
.room-modern .player-mode-3 .video-js .vjs-playback-rate {
    flex: 0 0 44px !important;
    width: 44px !important;
    min-width: 44px !important;
}

.room-modern .player-mode-3 .video-js .vjs-fullscreen-control,
.room-modern .player-mode-3 .video-js .vjs-css-fullscreen-control {
    flex-basis: 60px !important;
    width: 60px !important;
    min-width: 60px !important;
    margin-left: auto !important;
}

.room-modern .player-mode-3 .video-js .vjs-fullscreen-control .vjs-icon-placeholder::before,
.room-modern .player-mode-3 .video-js .vjs-css-fullscreen-control .vjs-icon-placeholder::before {
    height: 48px !important;
    font-size: 15px !important;
}

.room-modern .video-js.tcp-skin .vjs-big-play-button,
.room-modern .video-js.tcp-skin .vjs-big-play-button .vjs-button-icon {
    width: 88px !important;
    height: 64px !important;
}

.room-modern .video-js.tcp-skin .vjs-big-play-button {
    margin-top: -32px !important;
    margin-left: -44px !important;
}

/* TCPlayerLite fallback controls. */
.room-modern .vcp-player .vcp-controls-panel {
    height: 52px !important;
    font-size: 17px !important;
}

.room-modern .vcp-player .vcp-playtoggle,
.room-modern .vcp-player .vcp-fullscreen-toggle {
    width: 52px !important;
    height: 52px !important;
}

/* TCPlayer 5.x 没有全屏按钮文案配置，因此仅用样式将图标替换为文字。 */
.room-modern .video-js .vjs-fullscreen-control,
.room-modern .video-js .vjs-css-fullscreen-control {
    flex: 0 0 76px !important;
    width: 76px !important;
    min-width: 76px !important;
}

.room-modern .video-js .vjs-fullscreen-control .vjs-icon-placeholder::before,
.room-modern .video-js .vjs-css-fullscreen-control .vjs-icon-placeholder::before {
    content: "全屏" !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 52px !important;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

.room-modern .video-js.vjs-fullscreen .vjs-fullscreen-control,
.room-modern .video-js.vjs-fullscreen .vjs-css-fullscreen-control {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
}

.room-modern .video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder::before,
.room-modern .video-js.vjs-fullscreen .vjs-css-fullscreen-control .vjs-icon-placeholder::before {
    content: "退出全屏" !important;
    font-size: 18px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

.room-modern .video-offline-poster {
    position: absolute;
    z-index: 60;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow: hidden;
    background: #02060c;
    pointer-events: none;
}

.room-modern .video-offline-poster.is-visible {
    display: block;
}

.room-modern .video-offline-poster img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-modern .video-loading {
    position: absolute;
    z-index: 70;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    color: #fff;
    background: rgba(2, 6, 12, 0.46);
    pointer-events: none;
}

.room-modern .video-loading.is-visible {
    display: flex;
}

.room-modern .video-loading-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    animation: room-video-loading-spin 0.85s linear infinite;
}

.room-modern .video-loading-text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

@keyframes room-video-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

/* TCPlayerLite 使用 vcp-full-window，TCPlayer 5.x 使用 vjs-full-window。 */
body.room-modern.vcp-full-window,
body.room-modern.vjs-full-window {
    padding: 0 !important;
    overflow: hidden !important;
}

body.vcp-full-window .videoArea-mobile,
body.vcp-full-window .videoArea.wrapper,
body.vcp-full-window #playerWrapper,
body.vcp-full-window #playerContainer,
body.vjs-full-window .videoArea-mobile,
body.vjs-full-window .videoArea.wrapper,
body.vjs-full-window #playerWrapper,
body.vjs-full-window #playerContainer {
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
}

body.vcp-full-window #id_TCP_video.vcp-player,
body.vjs-full-window #id_TCP_video.video-js,
#id_TCP_video.video-js.vjs-fullscreen {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 0 !important;
    max-height: none !important;
}

body.video-native-fullscreen,
body.video-landscape-fallback {
    overflow: hidden !important;
}

body.video-native-fullscreen .videoArea-mobile,
body.video-landscape-fallback .videoArea-mobile {
    overflow: visible !important;
}

body.video-native-fullscreen #playerWrapper:fullscreen,
body.video-native-fullscreen #playerWrapper:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    background: #02060c;
}

body.video-native-fullscreen .video-js .vjs-fullscreen-control,
body.video-native-fullscreen .video-js .vjs-css-fullscreen-control,
body.video-native-fullscreen .player-mode-3 .video-js .vjs-fullscreen-control,
body.video-native-fullscreen .player-mode-3 .video-js .vjs-css-fullscreen-control,
body.video-landscape-fallback .player-mode-3 .video-js .vjs-fullscreen-control,
body.video-landscape-fallback .player-mode-3 .video-js .vjs-css-fullscreen-control {
    flex-basis: 96px !important;
    width: 96px !important;
    min-width: 96px !important;
}

body.video-native-fullscreen .video-js .vjs-fullscreen-control .vjs-icon-placeholder::before,
body.video-native-fullscreen .video-js .vjs-css-fullscreen-control .vjs-icon-placeholder::before {
    content: "退出全屏" !important;
    font-size: 14px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* 浏览器仅支持伪全屏时，将播放器旋转并交换宽高作为横屏兜底。 */
body.video-landscape-fallback #playerWrapper {
    position: fixed !important;
    z-index: 2147483647 !important;
    top: 50% !important;
    right: auto !important;
    bottom: auto !important;
    left: 50% !important;
    width: 100vh !important;
    height: 100vw !important;
    min-height: 0 !important;
    max-height: none !important;
    background: #02060c;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
}

body.video-landscape-fallback #id_TCP_video.vcp-player,
body.video-landscape-fallback #id_TCP_video.video-js {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
}

.room-modern-mobile .chatArea-mobile {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: hidden;
    border-top: 0;
    background: #f5f6f9;
    box-shadow: none;
}

.room-modern-mobile .chatArea-mobile .layui-tab-room {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #f5f6f9;
}

.room-modern-mobile .chatArea-mobile .layui-tab-content,
.room-modern-mobile .chatArea-mobile .layui-tab-item {
    position: relative;
    height: 100%;
    min-height: 0;
    background: #f5f6f9;
}

.room-modern-mobile .chatArea-mobile .layui-tab-item.layui-show {
    font-size: 16px;
}

.room-modern-mobile .chatArea-mobile .room-chat-panel.layui-show {
    display: flex !important;
    flex-direction: column;
    overflow: hidden;
}

.room-modern-mobile .chatArea-mobile .layui-tab-room .layui-tab-title {
    display: flex;
    flex: 0 0 60px;
    align-items: center;
    gap: 10px;
    height: 60px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid #e5eaf0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    box-sizing: border-box;
}

.room-modern-mobile .chatArea-mobile .room-chat-title {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    width: auto;
    min-width: 0;
    height: 100%;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
}

.room-modern-mobile .room-chat-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
}

.room-modern-mobile .room-chat-label:before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 3px;
    background: #2563eb;
}

.room-modern-mobile .room-online-count {
    display: inline-flex;

    align-items: center;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
}

/* Refresh the current live room from the chat title bar. */
.room-modern-mobile .room-chat-refresh {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 68px;
    height: 36px;
    margin-left: 0;
    padding: 0 11px;
    border: 0;
    border-radius: 10px;
    color: #2563eb;
    background: #eff6ff;
    line-height: 1;
    font-size: 16px;
    font-weight: 600;
    vertical-align: middle;
    box-shadow: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.room-modern-mobile .room-chat-refresh:hover {
    color: #1d4ed8;
    background: #dbeafe;
}

.room-modern-mobile .room-chat-refresh .layui-icon {
    margin-right: 4px;
    color: #2563eb;
    font-size: 18px;
}

.room-modern-mobile .chatArea-mobile .layui-tab-content {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
}

.room-modern-mobile .dialog-chat-list.mobile {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 1 1 auto;
    height: auto !important;
    min-height: 0;
    padding: 12px 12px 14px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: #c4cad4 transparent;
    scrollbar-width: thin;
    color: #111827;
    background: #f5f6f9;
    font-size: 16px;
}

.room-modern-mobile .dialog-chat-list.mobile::-webkit-scrollbar {
    width: 4px;
}

.room-modern-mobile .dialog-chat-list.mobile::-webkit-scrollbar-track {
    margin: 8px 0;
    background: transparent;
}

.room-modern-mobile .dialog-chat-list.mobile::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: #c4cad4;
}

.room-modern-mobile .dialog-chat-list.mobile #scrollChatCon {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.room-modern-mobile .dialog-chat-list.mobile .chat-time-divider {
    align-self: center;
    width: 100%;
    margin: 6px 0 14px;
    padding: 0;
    color: #8a98a8;
    background: transparent;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
}

.room-modern-mobile .chat-history-pager {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 2px 0 6px;
    box-sizing: border-box;
}

.room-modern-mobile .room-entry-guide {
    display: none;
    width: 100%;
    padding: 12px 12px 4px;
    color: #344054;
    font-size: 16px;
    line-height: 1.65;
    box-sizing: border-box;
}

.room-modern-mobile .room-entry-system {
    padding: 10px 12px;
    color: #667085;
    border-radius: 7px;
    background: #f1f3f5;
}

.room-modern-mobile .room-entry-system strong {
    color: #475467;
    font-weight: 600;
}

.room-modern-mobile .room-entry-assistant {
    display: block;
    margin-top: 16px;
}

.room-modern-mobile .room-entry-assistant-body {
    min-width: 0;
    max-width: 100%;
}

.room-modern-mobile .room-entry-assistant-name {
    margin: 0 0 5px;
    color: #667085;
    font-size: 16px;
    line-height: 22px;
}

.room-modern-mobile .room-entry-message {
    padding: 11px 13px;
    color: #253858;
    border: 1px solid #eef0f3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.room-modern-mobile .room-entry-message strong {
    color: #172b4d;
    font-weight: 600;
}

.room-modern-mobile .room-entry-message ol {
    margin: 2px 0 0;
    padding-left: 25px;
    list-style: decimal;
}

.room-modern-mobile .room-entry-message li {
    display: list-item;
    margin: 0;
    padding-left: 2px;
}

.room-modern-mobile .chat-history-load {
    min-height: 28px;
    padding: 0 6px;
    border: 0;
    border-radius: 0;
    color: #64748b;
    background: transparent;
    font-size: 14px;
    line-height: 28px;
    cursor: pointer;
}

.room-modern-mobile .chat-history-load:disabled {
    color: #94a3b8;
    cursor: default;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog {
    display: flex;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0 0 10px;
    padding: 0;
    box-sizing: border-box;
    color: #111827;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .title {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: flex-start;
    max-width: 40%;
    min-height: 0;
    padding: 9px 8px 0 0;
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog > .ctime,
.room-modern-mobile .dialog-chat-list.mobile .dialog .title > .ctime,
.room-modern-mobile .dialog-chat-list.mobile .dialog .title > .clear,
.room-modern-mobile .dialog-chat-list.mobile .dialog > .clear {
    display: none !important;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .account,
.room-modern-mobile .dialog-chat-list.mobile .dialog > .account {
    float: none;
    display: block;
    max-width: 26vw;
    height: auto;
    padding: 0;
    overflow: hidden;
    color: #66788a;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    white-space: nowrap;
    text-overflow: ellipsis;
    border-radius: 0;
    background: transparent;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg > .ctime {
    display: none !important;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .account:after,
.room-modern-mobile .dialog-chat-list.mobile .dialog > .account:after {
    display: none;
    content: none;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .robot {
    float: none;
    margin-left: 4px;
    color: #8a98a8;
    font-size: 13px;
    line-height: 25px;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .avatar,
.room-modern-mobile .dialog-chat-list.mobile .dialog .user-avatar,
.room-modern-mobile .dialog-chat-list.mobile .dialog .portrait {
    display: none !important;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message {
    float: none;
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 70%;
    height: auto;
    margin: 0;
    padding: 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message:after {
    display: none;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg {
    display: block;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg + .msg {
    margin-top: 6px;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg .content {
    display: inline-block;
    max-width: 100%;
    padding: 9px 12px;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    vertical-align: top;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg .content span {
    color: inherit;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog .message .msg .content * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog-notice,
.room-modern-mobile .dialog-chat-list.mobile .dialog-notice .infobar,
.room-modern-mobile .dialog-chat-list.mobile .dialog-notice .message,
.room-modern-mobile .dialog-chat-list.mobile .dialog-notice .gift {
    color: #111827;
    font-size: 16px;
}

.room-modern-mobile .dialog-chat-list.mobile .dialog-notice .message,
.room-modern-mobile .dialog-chat-list.mobile .dialog-notice .gift {
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

.room-modern-mobile .dialog-chat-post.mobile {
    position: relative;
    z-index: 30;
    right: auto;
    bottom: auto;
    left: auto;
    display: block;
    flex: 0 0 calc(62px + env(safe-area-inset-bottom));
    width: 100%;
    height: 62px;
    height: calc(62px + env(safe-area-inset-bottom));
    border-top: 1px solid #e7ebf1;
    background: #fff;
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 7px 12px;
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    border: 0;
    background: transparent;
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
    height: 46px;
    margin: 0;
    margin-right: 0;
    gap: 8px;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .adiv {
    float: none;
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: 46px;
    overflow: hidden;
    border: 1px solid #dfe4ec;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .adiv:focus-within {
    border-color: #4f8cff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.14);
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .ctextarea {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
    padding: 0 14px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #334155;
    font-size: 15px;
    line-height: 44px;
    caret-color: #2563eb;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: text;
    resize: none;
    box-sizing: border-box;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn {
    appearance: none;
    -webkit-appearance: none;
    float: none;
    display: flex;
    flex: 0 0 62px;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-width: 62px;
    height: 46px;
    padding: 0;
    color: #fff;
    border: 1px solid #3478f6;
    border-radius: 14px;
    background: #3478f6;
    box-shadow: 0 4px 10px rgba(52, 120, 246, 0.22);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 44px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn:hover {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.26);
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn:active {
    border-color: #1d4ed8;
    background: #1d4ed8;
    box-shadow: 0 2px 6px rgba(29, 78, 216, 0.2);
    transform: translateY(1px);
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn:disabled,
.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn.layui-btn-disabled {
    color: rgba(255, 255, 255, 0.86) !important;
    border-color: #9bbcf8 !important;
    background: #9bbcf8 !important;
    box-shadow: none !important;
    cursor: default;
    transform: none;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .sendbtn i {
    color: #fff;
    line-height: 1;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .editinput .ctextarea:empty:before {
    top: 0;
    left: 14px;
    line-height: 44px;
    color: #9aa4b2;
    font-size: 15px;
    content: "输入聊天内容";
    pointer-events: none;
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .no-chat-shade {
    position: absolute;
    z-index: 9999;
    top: 7px;
    right: 12px;
    bottom: 7px;
    bottom: calc(7px + env(safe-area-inset-bottom));
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #64748b;
    background: rgba(245, 246, 249, 0.86);
    backdrop-filter: blur(2px);
}

.room-modern-mobile .dialog-chat-post.mobile .input-area .no-chat-shade i {
    display: block;
    margin: 0;
    line-height: 1;
}

.room-modern-mobile .user-account {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 36px;
    margin-left: auto;
    color: #334155;
    gap: 8px;
}

.room-modern-mobile .user-account .account-name {
    display: block;
    max-width: 120px;
    height: 36px;
    padding: 0 11px;
    overflow: hidden;
    border-radius: 9px;
    color: #334155;
    background: #f1f5f9;
    font-size: 16px;
    font-weight: 600;
    line-height: 36px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.room-modern-mobile .user-account .layui-btn {
    height: 36px;
    margin: 0;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    line-height: 36px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
    transform: none;
}

.room-modern-mobile .user-account .btnUserLogin {
    color: #fff;
    border-color: #2563eb;
    background: #2563eb;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.room-modern-mobile .user-account .btnUserLogin:hover {
    color: #fff;
    border-color: #1d4ed8;
    background: #1d4ed8;
    opacity: 1;
}

.room-modern-mobile .user-account .btnLogOut {
    color: #475569;
    border-color: #dbe3ec;
    background: #fff;
}

.room-modern-mobile .user-account .btnLogOut:hover {
    color: #1d4ed8;
    border-color: #bfdbfe;
    background: #eff6ff;
    opacity: 1;
}

.room-modern-mobile.room-keyboard-open .btnRedBag {
    display: none;
}

.room-modern-mobile .btnRedBag {
    right: 12px;
    bottom: 112px;
    width: 44px;
}

.room-modern-mobile .layui-layer.room-login-layer {
    max-width: calc(100vw - 24px);
    border-radius: 18px;
    background: transparent;
    box-shadow: none;
}

.room-modern-mobile .layui-layer.room-login-layer .layui-layer-content {
    overflow: visible;
    border-radius: 18px;
}

.room-modern-mobile .layui-layer.room-login-layer .layui-layer-setwin {
    z-index: 2;
    top: 16px;
    right: 16px;
}

.room-modern-mobile .layui-layer.room-login-layer .layui-layer-close1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    color: #64748b;
    background: #f8fafc !important;
    font-size: 0;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.room-modern-mobile .layui-layer.room-login-layer .layui-layer-close1:before {
    content: "\00d7";
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
}

.room-modern-mobile .layui-layer.room-login-layer .layui-layer-close1:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f1f5f9 !important;
    opacity: 1;
}

.room-modern-mobile .room-login-layer .popup_box.regester {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    padding: 0;
    color: #0f172a;
    background: transparent;
}

.room-modern-mobile .room-login-layer .popup_box.regester .regester-con {
    float: none;
    width: 100%;
    margin: 0;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.2);
}

.room-modern-mobile .room-login-layer .popup_box.regester .pop_tit {
    margin: 0 44px 20px 0;
    padding: 0;
    color: #0f172a;
    font-size: 20px;
    font-weight: 700;
    line-height: 32px;
    text-align: left;
}

.room-modern-mobile .room-login-layer .popup_box.regester .pop_con {
    margin: 0;
    padding: 0;
    color: #0f172a;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-form-item {
    width: 100%;
    margin: 0 0 14px;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-form-item:last-child {
    margin: 18px 0 0;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-input-inline {
    left: auto;
    float: none;
    width: 100%;
    margin: 0;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-input {
    height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe3ec;
    border-radius: 10px;
    color: #0f172a;
    background: #f8fafc !important;
    line-height: 44px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-input:focus {
    border-color: #60a5fa;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-input::placeholder {
    color: #94a3b8;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-btn {
    height: 44px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: #2563eb;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
    font-size: 15px;
    font-weight: 600;
    line-height: 44px;
}

.room-modern-mobile .room-login-layer .popup_box.regester .layui-btn:hover {
    color: #fff;
    background: #1d4ed8;
    opacity: 1;
}

.room-modern-mobile .layui-layer.room-logout-dialog {
    width: 320px !important;
    max-width: calc(100vw - 32px);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.22);
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-title {
    height: auto;
    padding: 20px 20px 8px;
    border: 0;
    color: #0f172a;
    background: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 30px;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-content {
    min-height: 0;
    padding: 0 20px 20px !important;
    color: #64748b;
    font-size: 16px;
    line-height: 26px;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    border: 0;
    text-align: center;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn a {
    flex: 1 1 0;
    height: 42px;
    margin: 0;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    line-height: 42px;
    box-sizing: border-box;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn0 {
    border-color: #ef4444;
    color: #fff;
    background: #ef4444;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn0:hover {
    border-color: #dc2626;
    color: #fff;
    background: #dc2626;
    opacity: 1;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn1 {
    border-color: #e2e8f0;
    color: #475569;
    background: #f8fafc;
}

.room-modern-mobile .layui-layer.room-logout-dialog .layui-layer-btn1:hover {
    border-color: #cbd5e1;
    color: #0f172a;
    background: #f1f5f9;
    opacity: 1;
}

@media screen and (max-width: 420px) {
    .room-modern-mobile .videoArea-mobile {
        height: 60vw;
        min-height: 210px;
    }

    .room-modern .dialog-chat-list.list01 .dialog .message {
        margin-right: 3px;
    }

    .room-modern-mobile .chatArea-mobile .layui-tab-room .layui-tab-title {
        gap: 8px;
        padding-right: 10px;
        padding-left: 10px;
    }

    .room-modern-mobile .chatArea-mobile .room-chat-title {
        gap: 6px;
    }

    .room-modern-mobile .room-online-count {
        padding: 0 7px;
    }

    .room-modern-mobile .room-online-unit {
        display: none;
    }

    .room-modern-mobile .user-account .account-name {
        max-width: 90px;
    }
}

@media screen and (max-width: 340px) {
    .room-modern-mobile .room-online-count {
        display: none;
    }
}
