* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    padding: 24px;
    max-width: 1100px;
    margin: 0 auto;
    background: #f5f7fa;
}

/* 悬浮容器 */
.lang-switch-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.lang-switch-wrapper:active {
    transform: scale(0.95);
}

/* 轨道：毛玻璃效果 */
.lang-switch-track {
    position: relative;
    width: 72px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 文字样式 */
.lang-txt {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
    z-index: 1;
}

/* 滑块圆点 */
.lang-switch-dot {
    position: absolute;
    left: 6px;
    width: 24px;
    height: 24px;
    background: #007AFF;
    /* 苹果蓝，可根据你的主题调整 */
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
}

/* 状态切换：中文模式 (默认) */
body:not(.lang-en) .lang-txt.zh {
    color: #fff;
}

/* 状态切换：英文模式 */
body.lang-en .lang-switch-dot {
    left: 38px;
    background: #34c759;
    /* 切换为绿色表示激活英文 */
    box-shadow: 0 2px 8px rgba(52, 199, 89, 0.4);
}

body.lang-en .lang-txt.en {
    color: #fff;
}

.tfr-toast {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 10000;

    /* 视觉设计：毛玻璃 */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* 关键：防抖动布局 */
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 180px;
    /* 预留足够空间给英文 */
    line-height: 1.4;

    /* 动画状态 */
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

/* 显示状态 */
.tfr-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-icon {
    font-size: 16px;
}

#toast-text {
    font-size: 14px;
    font-weight: 400;
    /* 强制英文单词不换行 */
    white-space: nowrap;
}


/* 状态条 */
.ws-status {
    padding: 10px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    display: flex;
    line-height: 20px;
    justify-content: space-between;
    align-items: center;
}

.ws-connected {
    background: #e6ffed;
    color: #36ad6a;
}

.ws-disconnected {
    background: #fff2e8;
    color: #ff7d00;
}

/* 拖放区域 */
.drop-area {
    border: 2px dashed #409eff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    background: white;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.drop-area:hover {
    background: #f0f7ff;
}

.drop-area.active {
    background: #e6ff7f;
    border-color: #1890ff;
}

.drop-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.drop-desc {
    color: #666;
    margin-bottom: 16px;
}

/* 选项卡 */
.tab-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background: #f9fafc;
    border-bottom: 1px solid #eee;
}

.tab-item {
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    height: 54px;
}

.tab-item::before {
    content: attr(data-icon);
    position: absolute;
    left: 5px;
}

.tab-item em {
    position: absolute;
    right: 5px;
    font-style: normal;
    display: none;
}

.tab-item:hover em {
    display: inline-block;
}

.tab-item em::before {
    content: attr(data-icon);
    font-size: 12px;
    line-height: 1;

}

.tab-item.active {
    color: #409eff;
    background: white;
    border-bottom: 2px solid #409eff;
}

.tab-body {
    padding: 20px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.user-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    padding: 8px 14px;
    background: #409eff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.btn-primary {
    background: #409eff;
}

.btn-success {
    background: #67c23a;
}

.btn-warning {
    background: #ff9500;
}

.btn-danger {
    background: #f56c6c;
}

.search {
    flex: 1;
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* 树形结构 */
.tree {
    list-style: none;
    padding-left: 20px;
}

.tree-item {
    margin: 5px 0;
    line-height: 1.6;
}

.folder-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1890ff;
    font-weight: 500;
}

.folder-arrow {
    cursor: pointer;
    font-size: 11px;
    transition: transform 0.2s;
}

.folder-arrow.open {
    transform: rotate(90deg);
}

.file {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #333;
}

.file-info {
    color: #888;
    font-size: 12px;
    margin-left: 8px;
}

.tree-child {
    display: none;
}

.tree-child.show {
    display: block;
}

.checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* 用户文件 */
.user-file-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-file-name {
    flex: 1;
}

.user-file-size {
    font-size: 12px;
    color: #999;
}

#fileInput,
#dirInput {
    display: none;
}

/* 1. 待转发清单容器优化 */
.tfr-list-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 10px;
}

/* 2. 文件夹/文件行通用样式 */
.tfr-item-row {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

/* 悬停效果：增加淡淡的蓝色背景和位移感 */
.tfr-item-row:hover {
    background-color: #f0f7ff;
    transform: translateX(4px);
    border-color: #e0eaff;
}

/* 3. 文件夹特有样式：加粗并改变图标色 */
.tfr-folder {
    font-weight: 600;
    color: #444;
}

.tfr-folder i {
    color: #ffca28;
    margin-right: 8px;
}

/* 文件夹图标设为暖色 */

/* 4. 文件特有样式：更清爽的字体与间距 */
.tfr-file {
    font-size: 14px;
    color: #666;
}

/* 5. 文件信息（大小、日期）的微调 */
.tfr-file-meta {
    font-size: 12px;
    color: #999;
    margin-left: auto;
    /* 将信息推向右侧 */
    font-family: 'Fira Code', monospace;
    /* 极客感字体 */
}

/* 6. 复选框自定义：变成更漂亮的圆形或方圆 */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #007AFF;
    /* 苹果蓝，保持专业感 */
    cursor: pointer;
    margin-right: 12px;
}

/* 7. 选中状态：背景变绿，代表已入管道 */
.tfr-item-row.selected {
    background-color: #f2faf5;
    border-color: #d4edda;
}

/* 链接容器：增加深邃感和安全性暗示 */
.tfr-link-wrapper {
    display: flex;
    align-items: center;
    background: #fcfcfc;
    /* 极浅灰 */
    border: 1.5px dashed #d1d9e6;
    /* 虚线代表“临时管道” */
    border-radius: 10px;
    padding: 8px 12px;
    margin: 15px 0;
    transition: all 0.3s ease;
}

.tfr-link-wrapper:hover {
    border-color: #007AFF;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.08);
}

/* 链接文本：区分域名与 Session ID */
.tfr-url-text {
    flex: 1;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 13px;
    color: #444;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: all;
    /* 点击即可全选 */
}

/* 突出显示 Session ID 部分（画龙点睛） */
.tfr-url-session {
    color: #007AFF;
    font-weight: 600;
}

/* 按钮组：精致小巧 */
.tfr-link-btn {
    background: #f0f0f5;
    border: none;
    color: #555;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 8px;
    transition: 0.2s;
    display: flex;
    align-items: center;
}

.tfr-link-btn:hover {
    background: #007AFF;
    color: #fff;
}

.tfr-link-btn i {
    margin-right: 4px;
}



/* --- CSS 2. 核心動畫樣式 --- */
.tfr-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f6f6f6;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid transparent;
}

.tfr-row:hover {
    background: #fafafa;
}

/* 旋轉箭頭 */
.arrow {
    font-size: 10px;
    color: #ccc;
    margin-right: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.folder.open .arrow {
    transform: rotate(90deg);
    color: #007AFF;
}

/* 【關鍵】平滑滑出動畫容器 */
.tfr-child-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
}

.folder.open+.tfr-child-list {
    max-height: 500px;
}

/* 选中状态动画 */
.tfr-row.selected {
    background-color: #f0f7ff !important;
    border-left-color: #007AFF;
}

.tfr-main-container {
    display: none;
}

/* 呼吸燈標籤 */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        opacity: 1;
    }
}

.pipe-tag {
    font-size: 10px;
    background: #007AFF;
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    animation: pulse 2s infinite;
    margin-left: auto;
    font-weight: bold;
    display: none;
}

.selected .pipe-tag {
    display: block;
}

input[type="checkbox"] {
    accent-color: #007AFF;
    transform: scale(1.1);
}

.tfr-friend-empty {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 30px;
    border: 2px dashed #d1d9e6;
    border-radius: 12px;
    margin: 20px;
    background: #ffffff;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.02);

}

.tfr-empty-state {

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    border: 2px dashed #e1e4e8;
    border-radius: 12px;
    margin: 20px;
    background: #fafafa;
    transition: all 0.3s ease;
}

/* 1. 拖拽悬停时的视觉反馈 */
.tfr-empty-state.drag-over {
    border-color: #007AFF;
    background-color: #f0f7ff;
    transform: scale(1.02);
}

/* 2. 流光环动画：暗示“流传”的动态感 */
.stream-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #007AFF;
    border-right-color: #007AFF;
    animation: spin-flow 2s linear infinite;
}

@keyframes spin-flow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 3. 鼠标悬停容器效果 */
.tfr-empty-state:hover {
    border-color: #ccc;
}


/* 脉冲动画：视觉化“等待接入”的状态 */
.pulse-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    border: 2px solid #007AFF;
    animation: pulse-out 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}


.append .tfr-main-container {
    display: block;
}

.append .tfr-friend-empty,
.append .tfr-empty-state {
    display: none;
}

@keyframes pulse-out {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* 按钮微动效 */
button:hover {
    background: #0056b3;
}

button:active {
    transform: scale(0.95);
}

.receive-icon-box {

    width: 80px;
    height: 80px;
    background: #f0f7ff;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    position: relative;

}

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #22c55e;
    --bg-main: #f8fafc;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-sub: #64748b;
    --drop-bg: #ffffff;
    --drop-bg-hover: #eff6ff;
    --danger: #e53e3e;
    --bg: #f8f9fa;
    --text: #2d3748;
}



/* 核心容器：一体化设计 */
.tfr-card {
    margin-bottom: 20px;
    width: 100%;
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* WebSocket 状态条：与卡片顶部融合 */
.status-bar {
    background: #f0fdf4;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #dcfce7;
}

.status-dot {

    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    position: relative;
    display: inline-block;
}

/* 呼吸灯动画 */
.status-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

.status-text {
    color: #166534;
    font-size: 14px;
    font-weight: 500;
    flex-grow: 1;
}

.status-badge {
    color: #166534;
    font-size: 12px;
    opacity: 0.7;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 10px;
}

/* 拖拽交互区 */
.drop-zone {
    margin: 20px;
    padding: 20px 30px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: var(--drop-bg);
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* 拖入文件时的激活样式 (重点) */
.drop-zone.drag-over {
    border-style: solid;
    border-color: var(--primary);
    background: var(--drop-bg-hover);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.upload-icon {
    width: 56px;
    height: 56px;
    color: #94a3b8;
    margin-bottom: 16px;
    transition: all 0.3s;
}

.drag-over .upload-icon {
    color: var(--primary);
    transform: translateY(-8px);
    animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.drop-zone h3 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 18px;
    height: 24px;
}

.drop-zone p {
    margin: 0 0 18px 0;
    color: var(--text-sub);
    font-size: 14px;
    height: 18px;
}

.drop-zone p span {
    color: var(--primary);
    font-weight: 600;
}

/* 按钮设计 */
.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-outline {
    background: white;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-outline:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* 隐藏原生文件输入 */
#fileInput,
#dirInput {
    display: none;
}

.flow-icon-circle {

    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    position: relative;

}

.btn_friend_down {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.tfr-intro-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* 1. 核心布局与头部 */
.tfr-intro-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.tfr-title-main {
    color: #007AFF;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.tfr-title-main .icon {
    margin-right: 10px;
}

.tfr-title-sub {
    font-weight: 300;
    margin-left: 10px;
    color: #666;
    font-size: 16px;
}

.tfr-desc-text {
    font-size: 15px;
    margin: 0;
    color: #444;
}

.tfr-highlight-rust {
    color: #d84b2a;
    font-weight: bold;
}

/* 2. 章节通用样式 */
.tfr-sec {
    margin-bottom: 30px;
}

.tfr-sec-title-gold {
    color: #856404;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.tfr-sec-title-grey {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* 3. 分享卡片 */
.tfr-share-card {
    margin-bottom: 25px;
    background: #fff9f0;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    padding: 15px;
}

.tfr-share-tip {
    font-size: 13px;
    color: #856404;
    margin-bottom: 10px;
}

.tfr-burn-note {
    font-size: 11px;
    color: #aaa;
    margin-top: -10px;
    margin-left: 5px;
}

/* 4. 终端模拟器 */
.tfr-terminal {
    background: #1e1e1e;
    border-radius: 8px;
    padding: 18px;
    position: relative;
    border: 1px solid #333;
}

.tfr-code-block {
    color: #dcdcdc;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

.tfr-token-blue {
    color: #569cd6;
}

.tfr-token-orange {
    color: #ce9178;
}

.tfr-btn-copy {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.tfr-btn-copy:hover {
    background: #555;
}

/* 5. 指令速查 */
.tfr-usage-box {
    background: #f4f4f7;
    border-radius: 8px;
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #444;
    border: 1px solid #e1e4e8;
}

.tfr-usage-line {
    margin-bottom: 8px;
}

.tfr-usage-cmd {
    color: #007AFF;
}

.tfr-usage-comment {
    color: #999;
}

.tfr-usage-tip {
    margin-top: 4px;
    padding-left: 10px;
    border-left: 2px solid #ffe066;
    color: #999;
    font-size: 12px;
}

/* 针对英文模式微调 */
body.lang-en .tfr-usage-tip {
    font-size: 11px;
    letter-spacing: -0.1px;
}

.tfr-usage-footer {
    border-top: 1px solid #ddd;
    margin: 10px 0;
    padding-top: 10px;
}

/* 6. 核心优势网格 */
.tfr-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.tfr-grid-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-top-width: 3px;
    border-top-style: solid;
}

.tfr-grid-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.tfr-grid-desc {
    font-size: 12px;
    color: #777;
}

/* 7. 合规声明 */
.tfr-legal-box {
    padding: 20px;
    border-radius: 8px;
    background-color: #fafafa;
    border: 1px solid #eee;
    font-family: -apple-system, system-ui, sans-serif;
}

.tfr-legal-content {
    font-size: 12px;
    color: #777;
    line-height: 1.8;
    text-align: justify;
}

.tfr-legal-p {
    margin-bottom: 10px;
}

.tfr-legal-footer {
    margin: 0;
    padding-top: 8px;
    border-top: 1px dashed #ddd;
    color: #999;
}

/* 空状态容器 */
.tfr-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* 动态图标与流光环 */
.flow-icon-circle {
    position: relative;
    width: 80px;
    height: 80px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.stream-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: #007AFF;
    border-right-color: #34c759;
    border-radius: 50%;
    animation: tfr-spin 2s linear infinite;
}

@keyframes tfr-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 引导文案 */
.tfr-empty-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tfr-empty-desc {
    margin: 0;
    color: #999;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
}

/* 专利脚注 */
.tfr-patent-badge {
    margin-top: 30px;
    font-size: 11px;
    color: #ccc;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 1. 主容器布局 */
.tfr-main-container {
    border: 1px solid #e1e4e8;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

/* 2. 顶部状态与操作栏 */
.tfr-top-bar {
    padding: 15px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tfr-select-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tfr-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007AFF;
}

.tfr-checkbox-label {
    font-size: 14px;
    color: #444;
    font-weight: 500;
    cursor: pointer;
}

/* 锁定状态标签 */
.tfr-status-badge {
    font-size: 12px;
    color: #007AFF;
    background: #e6f1ff;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* 3. 底部操作指引区 */
.tfr-guide-panel {
    padding: 15px 20px;
    background: #fffbe6;
    border-top: 1px solid #ffe58f;
}

.tfr-guide-flex {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.tfr-guide-content {
    flex: 1;
}

.tfr-guide-text {
    font-size: 13px;
    color: #856404;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.tfr-inline-code {
    background: #fff;
    padding: 2px 5px;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
    font-family: monospace;
}

/* 4. 共享链接条 */
.tfr-share-strip {
    background: rgba(255, 255, 255, 0.6);
    padding: 8px;
    border-radius: 6px;
    border: 1px dashed #ffe58f;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tfr-share-url-text {
    font-size: 12px;
    color: #a18139;
}

.tfr-btn-mini {
    background: #fff;
    border: 1px solid #d9d9d9;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: 0.2s;
}

.tfr-btn-mini:hover {
    background: #f0f0f0;
}

/* 1. 好友清单空状态容器 */
.tfr-friend-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

/* 2. 接收图标与脉冲动画 */
.receive-icon-box {
    position: relative;
    width: 80px;
    height: 80px;
    background: #f0f7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.pulse-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 122, 255, 0.2);
    animation: tfr-pulse 2s infinite;
}

@keyframes tfr-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* 3. 文案与分享区 */
.tfr-friend-empty-title {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tfr-friend-empty-desc {
    margin: 0 0 25px 0;
    color: #888;
    font-size: 14px;
    text-align: center;
    line-height: 1.6;
    max-width: 320px;
}

.tfr-share-invite-box {
    width: 100%;
    max-width: 400px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tfr-share-url-code {
    color: #007AFF;
    font-family: monospace;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tfr-btn-copy-blue {
    background: #007AFF;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.tfr-btn-copy-blue:hover {
    background: #0056b3;
}

/* 4. 底部背书 */
.tfr-waiting-footer {
    margin-top: 40px;
    font-size: 11px;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 页脚样式 */
.tfr-footer {
    border-top: 1px dashed #ddd;
    padding-top: 20px;
    font-size: 12px;
    color: #999;
    text-align: center;
}

.tfr-footer-p {
    margin: 5px 0;
}

.tfr-footer-strong {
    color: #777;
    /* 让加粗文字稍微深一点，更有层次感 */
}


body.lang-en {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#terminal {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 5px;
    height: 548px;
    overflow-y: auto;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);

    /* 核心排版设置 */
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* 必须等宽字体 */
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    /* 保留空格且自动换行 */
    word-break: break-all;
    /* 防止长字符串撑破容器 */
    border: 1px solid #333;
    position: relative;
    margin: -20px;
}

/* 文本框容器样式 */
#text-code {
    width: 100%;
    min-height: 420px;
    padding: 12px 16px;

    /* 字体与颜色 */
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    color: #333;
    line-height: 1.6;

    /* 边框与圆角 */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;

    /* 阴影与过渡 */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    outline: none;
    resize: none;
    /* 允许垂直拉伸 */
}

/* 鼠标悬停效果 */
#text-code:hover {
    border-color: #ccc;
    background-color: #fff;
}

/* 聚焦（点击输入）时的效果 */
#text-code:focus {
    background-color: #fff;
    border-color: #4a90e2;
    /* 图中那种蓝色色调 */
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    /* 外发光效果 */
}

/* 占位符文字样式 */
#text-code::placeholder {
    color: #aaa;
}

/* 编辑器整体外框 */
.tfr-editor-container {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: -20px;
}

/* 编辑器标题栏 */
.editor-header {
    background: #f6f8fa;
    padding: 8px 16px;
    border-bottom: 1px solid #e1e4e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-filename {
    font-family: monospace;
    font-size: 13px;
    color: #444;
}

.editor-lang-badge {
    font-size: 11px;
    background: #e1e4e8;
    padding: 2px 6px;
    border-radius: 4px;
    color: #666;
}

/* 代码输入区 */
.editor-body {
    background: #fafafa;
}

.code-textarea {
    width: 100%;
    height: 500px;
    border: none;
    background: transparent;
    font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #24292e;
    resize: none;
    outline: none;
    padding: 15px;
}

/* 底部黄色指引区 - 核心防抖动设计 */
.tfr-editor-guide {
    background: #fff9db;
    /* 柔和的黄色 */
    border-top: 1px solid #ffe066;
    padding: 12px 16px;
}

.guide-inner {
    display: flex;
    align-items: flex-start;
    /* 顶部对齐，防止换行时垂直跳动 */
    gap: 10px;
}

.guide-icon {
    font-size: 16px;
}

.guide-text {
    margin: 0;
    font-size: 14px;
    color: #856404;
    /* 核心：固定行高并预留出两行英文的空间 */
    line-height: 1.6;
    flex: 1;
}

/* 指令代码块样式 */
.tfr-cmd {
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
    color: #d84b2a;
    margin: 0 4px;
}

/* 英文状态下的字号微调 */
body.lang-en .guide-text {
    font-size: 13px;
    letter-spacing: -0.1px;
}

#terminal .close-msg {
    display: none;
    margin-left: -40px;
    margin-top: -100px;
    border-radius: 50%;
    border-radius: 50%;
    font-family: wdk;
    text-align: center;
    position: absolute;

    top: 50%;
    left: 50%;
    z-index: 1;
}

#terminal .close-msg::before {
    content: '\ea05';
    color: #ffbe00;
    font-family: wdk;
    width: 80px;
    height: 80px;
    font-size: 80px;
    line-height: 80px;
    display: block;
}

#terminal.lost::after {
    content: ' ';
    position: absolute;
    background-color: #fffa;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

#terminal.lost .close-msg {
    display: block;
}

.download_card {
    background: white;
    width: 400px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    position: fixed;

    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.download_card[down] {
    display: block;
}

.file-box {
    background: #f0f4f3;
    padding: 15px;
    border-radius: 8px;
    margin: 25px 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.download_card button {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    flex: 1;
}

/* 进度条 */
.progress-container {
    width: 100%;
    height: 6px;
    background: #edf2f7;
    border-radius: 3px;
    margin-bottom: 20px;
    display: none;
    overflow: hidden;
}

#pBar {
    width: 0%;
    height: 100%;
    background: #48bb78;
    transition: width 0.1s;
}

.btn-group {
    display: flex;
    gap: 10px;
    height: 40px;
}

.downloas_card .btn-group button {
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    flex: 1;
}

#dlBtn {
    background: var(--primary);
    color: white;
}

#cancelBtn {
    background: var(--danger);
    color: white;
}


#status {
    margin-top: 15px;
    font-size: 12px;
    color: #718096;
    min-height: 18px;
}

.verify-container {
    background: #fff;
    width: 90%;
    max-width: 450px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    display: none;
}

.verify-container.show {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.verify-container .title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
}

.verify-container .code-input-group {
    display: flex;
    justify-content: space-between;
    margin: 0 auto 30px;
    width: 90%;
}

.verify-container .code-input {
    width: 45px;
    height: 50px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

.verify-container .code-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.verify-container .num-keyboard {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 90%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.verify-container.init .num-keyboard {
    display: none;
}

.verify-container .key-btn {
    height: 50px;
    border: none;
    border-radius: 8px;
    background: #f8f8f8;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.verify-container .key-btn:hover {
    background: #e9e9e9;
}

.verify-container .key-btn.delete {
    grid-column: 2 / 3;
    background: #ff5252;
    color: #fff;
}

.verify-container .key-btn.delete:hover {
    background: #ff3b3b;
}