@font-face {
    font-family: "iconfont";
    src: url('iconfont.eot?t=1526122643406');
    /* IE9*/
    src: url('iconfont.eot?t=1526122643406#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAAcQAAsAAAAACmgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAAQwAAAFZW7kj/Y21hcAAAAYAAAAB6AAAByJzE0+NnbHlmAAAB/AAAAvUAAAPoPymj9mhlYWQAAAT0AAAAMQAAADYRlRckaGhlYQAABSgAAAAeAAAAJAgbA8JobXR4AAAFSAAAABcAAAAYGCX//2xvY2EAAAVgAAAADgAAAA4DmgJabWF4cAAABXAAAAAfAAAAIAEbAGhuYW1lAAAFkAAAAUUAAAJtPlT+fXBvc3QAAAbYAAAAOAAAAEmP7MU1eJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWOcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGBwYKp6zMTf8b2CIYW5kaAAKM4LkANW8C4MAeJzFkdENgzAMRJ9JGlWIHVigk1QdgRH4Rnx0XjMGnBP4YAIuelHuZMuRDLyAJD4ig/0xQotSq3mir3nmKz/wptN79dEnn7ey70rv7pKp+jrhsqYldWOFx2TPjb5rqPfvdLGH9URf9LERO/GpETU+N2JnW2nQHX5QGwMAAHicZVJNiBxVEH7fezPdO3/9tn9e93Tv7Mz2TKbbIdrBSe8MGNK7hhxcFREEf8hFTwkE95qL4HgQPHiQgGBuiwiC5JaDHgLZxKt3E3JR9OB1ydHMG+uNETbYNPWq6qtX9aq+YnXGVr+Lu6LLfPYCe5ldZm8zBusshg7fRpqXBT8LldZVFDgiH+WpPRoW4iKioRWE01mZRZZtSTjo43w6neUFz7FbVvwCpuE2EG8l73jjnie+QrOb9z/Xr/NvoQajnqxe0gcv7gXTHX/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2jjVbhF/U3YxzOmwm10YXmD17hi9oR3YQ8dfAjXcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxjYGKAAC4G7ICNkYmRmZGFkZWRjZGdgbGCJTm/oJKtKDU3vyyVpSCntJglNSWzhIEBAHoeCHI=') format('woff'), url('iconfont.ttf?t=1526122643406') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ url('iconfont.svg?t=1526122643406#iconfont') format('svg');
    /* iOS 4.1- */
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-copy:before {
    content: "\e706";
}

.icon-remove:before {
    content: "\e66c";
}

.icon-plus:before {
    content: "\e61f";
}

.icon-edit:before {
    content: "\e65c";
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 360px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.site-name {
    font-size: 1.5em; /* Adjust the size as needed */
    text-decoration: none; /* Remove underline */
    color: var(--text-color);
}

.airdrop {
    min-height: 220px;
    margin: 10px 10px 10px 10px;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;

    /* Apple-style frosted glass */
    background: rgba(255, 255, 255, 0.05); /* 更柔和的玻璃层 */
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow: var(--glass-inset-glow),
    var(--glass-outline),
    var(--glass-shadow);
}

/*使用 ::before 添加一个内边缘渐变，制造光线弯曲效果 */
.airdrop::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background: radial-gradient(
            ellipse at bottom right,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            transparent 50%
    );
    z-index: 1;
}

.airdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNHB4JyBoZWlnaHQ9JzRweCcgdmlld0JveD0nMCAwIDQgNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScwJyB5PScwJyBmaWxsPSdibGFjaz0wLjEnLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScyJyB5PScwJyBmaWxsPSdibGFjaz0wLjInLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScwJyB5PScyJyBmaWxsPSdibGFjaz0wLjMnLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PSczJyB5PSczJyBmaWxsPSdibGFjaz0wLjQnLz48L3N2Zz4=");
    background-repeat: repeat;
    background-size: 4px 4px;
    opacity: 0.04;
    z-index: 1;
}


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

.message-li {
    min-height: 10px;
    color: var(--text-color);
    background-color: var(--bg-color-secondary);
    margin-bottom: 10px;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    white-space: pre-wrap; /* 支持换行符 */
    word-wrap: break-word;
    position: relative;
}

/* 鼠标悬停时添加阴影 */
.message-li:hover {
    box-shadow: var(--glass-inset-glow);
    transform: translateY(-2px); /* 可选：微微上浮提升层次 */
}

.messages img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    max-height: 200px;
    background: none;
    cursor: pointer;
    transition: transform 0.3s, height 0.3s;
}

.buttons {
    position: absolute;
    right: 5px;
    top: 5px;
}

.alert-primary {
    color: #004085;
    background-color: #cce5ff;
    border-color: #b8daff;
}

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

.btn-sm {
    font-size: .875rem;
    line-height: 1.5;
    border-radius: .2rem
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    border: 1px solid transparent;
    padding: .0rem .35rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.buttons .btn i {
    display: inline-block;
    line-height: 1.8;
    vertical-align: middle;
}

.btn-primary {
    color: #fff;
    background-color: #007bff;
    border-color: #007bff
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d
}

.share {
    display: flex;
    align-items: center;
    gap: 20px;
}

.url-text {
    word-break: break-all;
}

/* 自定义 NProgress 进度条的颜色和高度 */
#nprogress .bar {
    background: var(--primary-color); /* 将进度条的颜色设置为蓝色 */
    height: 2px; /* 将进度条的高度设置为默认 2px */
}

/* 倒计时容器 */
#countdown {
    display: inline-block;
    padding: 5px 10px;
    color: var(--text-color);
    background-color: var(--bg-color-secondary);
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 5px;
    margin-left: 10px;
}

/* 单独的时间部分 */
.countdown-part {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* 时间之间的分隔符 */
.countdown-separator {
    margin: 0 2px;
}

/* 响应式调整 */
@media (max-width: 600px) {
    #countdown {
        font-size: 1em;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s;
}

.overlay img.expanded {
    transform: scale(1.1);
}

.tooltip-icon {
    visibility: hidden;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    min-width: 330px; /* Limit the max width to viewport width minus 20px (10px on each side) */
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: fixed; /* Fixed position to ensure it stays centered */
    z-index: 1;
    left: -80px; /* Center horizontally */
    transform: translate(-50%, -50%); /* Translate to center */
    transition: opacity 0.3s;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words are wrapped */
    bottom: -105px;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.board-input-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    max-width: 160px;
    padding: 4px;
    margin-left: 10px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.03); /* 背景微光感，提升层次 */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05),
    0 1px 3px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease;
}

.board-input-wrapper:focus-within {
    box-shadow: var(--glass-inset-glow);
}

.board-input {
    width: 100%;
    padding: 2px 10px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    color: var(--text-color, #fff);
    background-color: var(--bg-color-secondary, rgba(255, 255, 255, 0.05));
    border: 1.5px solid var(--primary-color, #2d9cdb);
    border-radius: 6px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    /*caret-color: var(--bg-color-secondary, #2d9cdb);*/
    line-height: 1.4;
}

/*.board-input:hover {*/
/*    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
/*    transform: translateY(-2px); !* 可选：微微上浮提升层次 *!*/
/*}*/

.board-input:focus {
    border-color: var(--primary-color, #2d9cdb);
    box-shadow: 0 0 4px rgba(0, 120, 212, 0.3);
    /*background-color: rgba(255, 255, 255, 0.8);*/
}

.board-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
}

.clipboard {
    margin: 10px;
    padding: 20px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;

    /* Apple-style frosted glass */
    background: rgba(255, 255, 255, 0.05); /* 更柔和的玻璃层 */
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);

    /* Layered border for realistic edge */
    /*border: 1px solid rgba(255, 255, 255, 0.2);*/
    box-shadow: var(--glass-inset-glow),
    var(--glass-outline),
    var(--glass-shadow);

    /*transition: all 0.3s ease;*/
}

/*使用 ::before 添加一个内边缘渐变，制造光线弯曲效果 */
.clipboard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    /*background: radial-gradient(*/
    /*        ellipse at bottom right,*/
    /*        rgba(255, 255, 255, 0.15) 0%,*/
    /*        rgba(255, 255, 255, 0.05) 40%,*/
    /*        transparent 50%*/
    /*);*/
    z-index: 1;
}

.clipboard::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nNHB4JyBoZWlnaHQ9JzRweCcgdmlld0JveD0nMCAwIDQgNCcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScwJyB5PScwJyBmaWxsPSdibGFjaz0wLjEnLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScyJyB5PScwJyBmaWxsPSdibGFjaz0wLjInLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PScwJyB5PScyJyBmaWxsPSdibGFjaz0wLjMnLz48cmVjdCB3aWR0aD0nMScgaGVpZ2h0PScxJyB4PSczJyB5PSczJyBmaWxsPSdibGFjaz0wLjQnLz48L3N2Zz4=");
    background-repeat: repeat;
    background-size: 4px 4px;
    opacity: 0.04;
    z-index: 1;
}

.card {
    position: fixed;
    top: 50px;
    left: 5px;
    height: 85vh;
    width: 26%;
    min-width: 400px;
    background-color: rgba(248, 249, 250, 0.2); /* 背景全透明 */
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease; /* 添加 height 过渡 */
    overflow: auto;

    /* 隐藏滚动条样式 */
    /*scrollbar-width: none; !* Firefox *!*/
    /*-ms-overflow-style: none; !* IE 10+ *!*/

    /* 显示默认滚动条样式 */
    scrollbar-width: thin;           /* Firefox: 使用细滚动条 */
    scrollbar-color: #ccc transparent; /* Firefox: 颜色设置 */
}

/* Webkit 浏览器滚动条样式 */
.card::-webkit-scrollbar {
    width: 8px;
}

.card::-webkit-scrollbar-track {
    background: transparent;
}

.card::-webkit-scrollbar-thumb {
    background-color: rgba(100, 100, 100, 0.4);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.card::-webkit-scrollbar-thumb:hover {
    background-color: rgba(100, 100, 100, 0.6);
}

.card.collapsed {
    height: 152px;
    width: 200px !important;
    min-width: 200px !important;
}

#toggleButton {
    width: 20px;
    height: 60px;
    background: none;
    border: none;
    cursor: pointer; /* 鼠标移上去时变成手型 */
    padding: 5px;
    display: inline-flex; /* 确保按钮包裹住图标 */
    align-items: center;
    justify-content: center;
    border-radius: 8px; /* 圆角效果 */
    margin-right: 5px;
    margin-left: 20px;
    box-shadow: var(--box-shadow); /* 阴影效果 */
    /*transition: box-shadow 0.3s ease; !* 平滑阴影动画 *!*/
}

#toggleButton:hover {
    box-shadow: var(--glass-inset-glow); /* 阴影效果 */
    border-radius: 8px;
}

.board-input-wrapper:hover {
    box-shadow: var(--glass-inset-glow);
}

#icon {
    fill: var(--primary-color); /* 通过 CSS 设置颜色 */
    transform: scale(4.0);
}

.emoji-logo {
    font-size: 40px;
    width: 66px;
    height: 66px;
    text-align: center;
    line-height: 60px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.emoji-logo:hover {
    transform: scale(1.1);
}

.peer-icon {
    font-size: 40px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    display: inline-block;
}

.record-btn {
    border: none;
    cursor: pointer; /* 鼠标移上去时变成手型 */
    display: inline-flex; /* 确保按钮包裹住图标 */
    align-items: center;
    justify-content: center;
    border-radius: 4px; /* 圆角效果 */
    margin: 5px 0 5px 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* 阴影效果 */
    transition: box-shadow 0.3s ease; /* 平滑阴影动画 */
}

.record-btn:hover {
    box-shadow: var(--glass-inset-glow);
}

.input-container {
    margin: 10px 20px 0 0;
    border-radius: 8px;
}

#messageInput {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: none;
    outline: none;
    resize: vertical;
    border-radius: 8px;
    line-height: 1.5;
    font-family: inherit;
    height: 100px;
    color: var(--text-color);
    background-color: var(--bg-color-secondary);
    transition: box-shadow 0.3s ease; /* 平滑阴影动画 */
}


#messageInput:focus-within {
    box-shadow: var(--glass-inset-glow);
    border-radius: 8px;
}


#messageInput:hover {
    box-shadow: var(--glass-inset-glow);
    border-radius: 8px;
}
