@charset "UTF-8";
:root {
    --主背景色: #000000;
    --次背景色: #16181c;
    --边框颜色: #2f3336;
    --主文字颜色: #e7e9ea;
    --次文字颜色: #71767b;
    --品牌颜色: #1d9bf0;
    --悬停颜色: rgba(239, 243, 244, 0.1);
    --左侧栏宽度: 275px;
    --右侧栏宽度: 350px;
    --喜欢颜色: #f91880;
    --转发颜色: #00ba7c;
    --蓝色认证: #1d9bf0;
    --黄色认证: #ffcf40;
    --代码编辑器背景: #1e1e1e;
    --代码编辑器文字: #d4d4d4;
    --成功色: #4caf50;
    --错误色: #f44336;
    --警告色: #ff9800;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--主背景色);
    color: var(--主文字颜色);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 1230px;
    margin: auto;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--边框颜色);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 左侧导航栏 */
.左侧栏 {
    width: var(--左侧栏宽度);
    padding: 0 12px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--边框颜色);
    z-index: 100;
}

.品牌标志 {
    margin: 12px 0;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.品牌标志:hover {
    background-color: var(--悬停颜色);
}

.品牌标志 i {
    font-size: 50px;
    color: var(--主文字颜色);
}

.导航菜单 {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.导航项 {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 9999px;
    text-decoration: none;
    color: var(--主文字颜色);
    font-weight: 400;
    font-size: 20px;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

.导航项 i {
    margin-right: 20px;
    font-size: 24px;
}

.导航项:hover {
    background-color: var(--悬停颜色);
}

.导航项.激活 {
    font-weight: 700;
}

.发帖按钮 {
    background-color: var(--品牌颜色);
    color: white;
    font-weight: bold;
    padding: 15px 0;
    border-radius: 9999px;
    border: none;
    margin-top: 16px;
    cursor: pointer;
    font-size: 17px;
    transition: background-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.发帖按钮:hover {
    background-color: #1a8cd8;
}

.用户资料 {
    margin-top: auto;
    margin-bottom: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
    border-radius: 9999px;
    cursor: pointer;
}

.用户资料:hover {
    background-color: var(--悬停颜色);
}

.头像 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.头像 i {
    font-size: 24px;
    color: var(--主文字颜色);
}

.头像 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.用户信息 {
    flex: 1;
}

.用户名 {
    font-weight: bold;
    font-size: 15px;
}

.用户账号 {
    color: var(--次文字颜色);
    font-size: 15px;
}

/* 主内容区 */
.主内容 {
    flex: 1;
    min-width: 0;
    border-right: 1px solid var(--边框颜色);
    max-width: 600px;
    position: relative;
}

.页面 {
    display: none;
}

.页面.激活 {
    display: block;
}

.页面头部 {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 10;
    padding: 0 16px;
    border-bottom: 1px solid var(--边框颜色);
}

.页面标题 {
    font-size: 20px;
    font-weight: bold;
    padding: 16px 0;
}

.标签容器 {
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
}

.标签 {
    flex: 1;
    text-align: center;
    padding: 16px 0;
    cursor: pointer;
    position: relative;
    color: var(--次文字颜色);
    font-weight: bold;
    font-size: 15px;
    transition: color 0.2s;
}

.标签.激活 {
    color: var(--主文字颜色);
}

.标签.激活::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 4px;
    background-color: var(--品牌颜色);
    border-radius: 9999px;
}

.发帖区 {
    padding: 16px;
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
}

.发帖头像 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.发帖头像 i {
    font-size: 24px;
    color: var(--主文字颜色);
}

.发帖表单 {
    flex: 1;
}

.发帖输入 {
    width: 100%;
    background-color: transparent;
    border: none;
    color: var(--主文字颜色);
    font-size: 20px;
    resize: none;
    margin-bottom: 12px;
    outline: none;
    padding: 12px 0;
    min-height: 60px;
}

.发帖输入::placeholder {
    color: var(--次文字颜色);
}

.发帖操作 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--边框颜色);
}

.发帖工具 {
    display: flex;
    gap: 16px;
}

.发帖工具 i {
    color: var(--品牌颜色);
    font-size: 20px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.发帖工具 i:hover {
    opacity: 0.8;
}

.发帖提交 {
    background-color: var(--品牌颜色);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s, opacity 0.2s;
}

.发帖提交:hover {
    background-color: #1a8cd8;
}

.发帖提交:disabled {
    opacity: 0.5;
    cursor: default;
}

.内容流 {
    display: flex;
    flex-direction: column;
}

.帖子 {
    padding: 16px;
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
    transition: background-color 0.2s;
    animation: 淡入 0.3s ease-in-out;
}

@keyframes 淡入 {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.帖子:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.帖子头像 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.帖子头像 i {
    font-size: 24px;
    color: var(--主文字颜色);
}

.帖子内容 {
    flex: 1;
    min-width: 0;
}

.帖子头部 {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.帖子用户名 {
    font-weight: bold;
    margin-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.帖子用户名:hover {
    text-decoration: underline;
}

.认证标志 {
    color: var(--蓝色认证);
    margin-right: 4px;
}

.认证标志.蓝色 {
    color: var(--蓝色认证);
}

.认证标志.黄色 {
    color: var(--黄色认证);
}

.帖子用户账号 {
    color: var(--次文字颜色);
    margin-right: 4px;
    white-space: nowrap;
    cursor: pointer;
}

.帖子时间 {
    color: var(--次文字颜色);
    white-space: nowrap;
}

.帖子文本 {
    margin-bottom: 12px;
    word-wrap: break-word;
    font-size: 15px;
    line-height: 1.5;
}

.帖子图片 {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--边框颜色);
    overflow: hidden;
}

.帖子图片 img {
    width: 100%;
    height: auto;
    display: block;
}

.帖子卡片 {
    border: 1px solid var(--边框颜色);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 12px;
    transition: background-color 0.2s;
}

.帖子卡片:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.帖子卡片图 {
    width: 100%;
    height: auto;
    display: block;
}

.帖子卡片内容 {
    padding: 12px;
}

.帖子卡片标题 {
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 15px;
}

.帖子卡片描述 {
    color: var(--次文字颜色);
    font-size: 15px;
}

.帖子操作 {
    display: flex;
    justify-content: space-between;
    max-width: 425px;
    margin-top: 4px;
}

.帖子按钮 {
    display: flex;
    align-items: center;
    color: var(--次文字颜色);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.2s;
}

.帖子按钮 i {
    font-size: 18px;
    margin-right: 8px;
    transition: color 0.2s;
}

.帖子按钮:hover {
    color: var(--品牌颜色);
}

.帖子按钮:hover i {
    color: var(--品牌颜色);
}

.帖子按钮.喜欢:hover {
    color: var(--喜欢颜色);
}

.帖子按钮.喜欢:hover i {
    color: var(--喜欢颜色);
}

.帖子按钮.喜欢.激活 {
    color: var(--喜欢颜色);
}

.帖子按钮.喜欢.激活 i {
    color: var(--喜欢颜色);
}

.帖子按钮.转发:hover {
    color: var(--转发颜色);
}

.帖子按钮.转发:hover i {
    color: var(--转发颜色);
}

.帖子按钮.转发.激活 {
    color: var(--转发颜色);
}

.帖子按钮.转发.激活 i {
    color: var(--转发颜色);
}

/* 通知页面 */
.通知类型 {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid var(--边框颜色);
    padding: 0 16px;
    scrollbar-width: none;
}

.通知类型::-webkit-scrollbar {
    display: none;
}

.通知标签 {
    padding: 16px 8px;
    margin-right: 16px;
    white-space: nowrap;
    cursor: pointer;
    color: var(--次文字颜色);
    font-weight: bold;
    position: relative;
}

.通知标签.激活 {
    color: var(--主文字颜色);
}

.通知标签.激活::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--品牌颜色);
    border-radius: 9999px;
}

.通知项 {
    padding: 16px;
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
    transition: background-color 0.2s;
}

.通知项:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.通知图标 {
    width: 32px;
    margin-right: 12px;
    display: flex;
    justify-content: center;
}

.通知图标 i {
    font-size: 20px;
}

.通知图标.喜欢 i {
    color: var(--喜欢颜色);
}

.通知图标.转发 i {
    color: var(--转发颜色);
}

.通知图标.回复 i {
    color: var(--品牌颜色);
}

.通知图标.关注 i {
    color: var(--品牌颜色);
}

.通知内容 {
    flex: 1;
}

.通知头像组 {
    display: flex;
    margin-bottom: 8px;
}

.通知小头像 {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 4px;
    overflow: hidden;
    border: 2px solid var(--主背景色);
}

.通知小头像:not(:first-child) {
    margin-left: -16px;
}

.通知文本 {
    font-size: 15px;
    line-height: 1.5;
}

.通知引用 {
    padding: 12px;
    margin-top: 8px;
    border: 1px solid var(--边框颜色);
    border-radius: 16px;
    font-size: 14px;
    color: var(--次文字颜色);
}

/* 个人资料页面 */
.个人资料头部 {
    position: relative;
}

.封面图片 {
    height: 200px;
    width: 100%;
    background-color: #333;
    position: relative;
}

.封面图片 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.封面图片 .编辑按钮 {
    position: absolute;
    right: 16px;
    top: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.封面图片 .编辑按钮:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.大头像 {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-color: var(--主背景色);
    border: 4px solid var(--主背景色);
    position: absolute;
    bottom: -70px;
    left: 16px;
    z-index: 1;
    overflow: hidden;
}

.大头像 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.资料内容 {
    padding: 16px;
    margin-top: 70px;
}

.资料操作 {
    display: flex;
    justify-content: flex-end;
}

.编辑资料按钮 {
    background-color: transparent;
    color: var(--主文字颜色);
    border: 1px solid var(--边框颜色);
    border-radius: 9999px;
    padding: 8px 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.编辑资料按钮:hover {
    background-color: var(--悬停颜色);
}

.真实姓名 {
    font-size: 20px;
    font-weight: bold;
    margin-top: 16px;
}

.资料账号 {
    font-size: 15px;
    color: var(--次文字颜色);
    margin-bottom: 16px;
}

.资料描述 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.资料信息 {
    display: flex;
    gap: 16px;
    font-size: 15px;
    color: var(--次文字颜色);
    margin-bottom: 16px;
}

.资料信息 i {
    margin-right: 4px;
}

.资料统计 {
    display: flex;
    gap: 20px;
    font-size: 15px;
    color: var(--次文字颜色);
}

.统计数字 {
    color: var(--主文字颜色);
    font-weight: bold;
    margin-right: 4px;
}

.资料标签容器 {
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
    margin-top: 16px;
}

/* 更多面板 */
.更多面板 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: 淡入 0.3s ease-in-out;
}

.更多面板.显示 {
    display: flex;
}

.更多内容 {
    background-color: var(--主背景色);
    border-radius: 16px;
    width: 320px;
    max-width: 90%;
    overflow: hidden;
}

.更多标题 {
    padding: 16px;
    font-weight: bold;
    border-bottom: 1px solid var(--边框颜色);
}

.更多选项 {
    display: flex;
    flex-direction: column;
    max-height: 70vh;
    overflow-y: auto;
}

.更多项 {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
}

.更多项:hover {
    background-color: var(--悬停颜色);
}

.更多项 i {
    margin-right: 12px;
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.更多脚注 {
    padding: 16px;
    font-size: 13px;
    color: var(--次文字颜色);
    text-align: center;
    border-top: 1px solid var(--边框颜色);
}

.更多操作 {
    padding: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--边框颜色);
}

.更多按钮 {
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.取消按钮 {
    background-color: transparent;
    color: var(--主文字颜色);
    border: 1px solid var(--边框颜色);
}

.取消按钮:hover {
    background-color: var(--悬停颜色);
}

.确认按钮 {
    background-color: var(--品牌颜色);
    color: white;
    border: none;
}

.确认按钮:hover {
    background-color: #1a8cd8;
}

/* 右侧边栏 */
.右侧栏 {
    width: var(--右侧栏宽度);
    padding: 0 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.搜索容器 {
    position: sticky;
    top: 0;
    padding: 12px 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background-color: rgba(0, 0, 0, 0.65);
}

.搜索框 {
    background-color: var(--次背景色);
    border-radius: 9999px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.搜索框:focus-within {
    background-color: var(--主背景色);
    box-shadow: 0 0 0 1px var(--品牌颜色);
}

.搜索框 i {
    color: var(--次文字颜色);
    margin-right: 12px;
}

.搜索输入 {
    background-color: transparent;
    border: none;
    color: var(--主文字颜色);
    font-size: 15px;
    flex: 1;
    outline: none;
}

.搜索输入::placeholder {
    color: var(--次文字颜色);
}

.趋势, .推荐关注 {
    background-color: var(--次背景色);
    border-radius: 16px;
    margin: 16px 0;
    overflow: hidden;
}

.板块标题 {
    padding: 16px;
    font-weight: bold;
    font-size: 20px;
}

.趋势项, .关注项 {
    padding: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.趋势项:hover, .关注项:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.趋势类别 {
    color: var(--次文字颜色);
    font-size: 13px;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.趋势名 {
    font-weight: bold;
    margin-bottom: 4px;
}

.趋势数量 {
    color: var(--次文字颜色);
    font-size: 13px;
}

.关注项 {
    display: flex;
    align-items: center;
}

.关注头像 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #333;
    margin-right: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.关注头像 i {
    font-size: 24px;
    color: var(--主文字颜色);
}

.关注信息 {
    flex: 1;
    min-width: 0;
}

.关注名 {
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.关注账号 {
    color: var(--次文字颜色);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.关注按钮 {
    background-color: var(--主文字颜色);
    color: var(--主背景色);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.关注按钮:hover {
    background-color: #e1e1e1;
}

.关注按钮.已关注 {
    background-color: transparent;
    color: var(--主文字颜色);
    border: 1px solid var(--边框颜色);
}

.关注按钮.已关注:hover {
    background-color: rgba(244, 33, 46, 0.1);
    color: #f4212e;
    border-color: rgba(244, 33, 46, 0.35);
}

.关注按钮.已关注:hover:before {
    content: "取消关注";
}

.关注按钮.已关注 span {
    display: inline;
}

.关注按钮.已关注:hover span {
    display: none;
}

.显示更多 {
    padding: 16px;
    color: var(--品牌颜色);
    cursor: pointer;
    transition: background-color 0.2s;
}

.显示更多:hover {
    background-color: rgba(255, 255, 255, 0.03);
    text-decoration: underline;
}

.页脚 {
    padding: 16px;
    font-size: 13px;
    color: var(--次文字颜色);
}

.页脚 a {
    color: var(--次文字颜色);
    text-decoration: none;
    margin-right: 12px;
    line-height: 2;
    transition: text-decoration 0.2s;
}

.页脚 a:hover {
    text-decoration: underline;
}

/* 移动端适配 */
@media (max-width: 1280px) {
    .右侧栏 {
	width: 290px;
    }
}

@media (max-width: 1024px) {
    .左侧栏 {
	width: 88px;
	padding: 0 4px;
    }

    .导航文本, .用户信息 {
	display: none;
    }

    .发帖按钮 {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
    }

    .发帖按钮文本 {
	display: none;
    }

    .发帖按钮 i {
	display: block;
	font-size: 24px;
    }

    .用户资料 {
	justify-content: center;
    }

    .头像 {
	margin-right: 0;
    }
}

@media (max-width: 768px) {
    .右侧栏 {
	display: none;
    }
}

@media (max-width: 500px) {
    .左侧栏 {
	position: fixed;
	bottom: 0;
	width: 100%;
	height: auto;
	flex-direction: row;
	border-right: none;
	border-top: 1px solid var(--边框颜色);
	background-color: var(--主背景色);
	z-index: 100;
	padding: 0;
    }

    .品牌标志, .发帖按钮, .用户资料 {
	display: none;
    }

    .导航菜单 {
	flex-direction: row;
	margin-top: 0;
	width: 100%;
    }

    .导航项 {
	flex: 1;
	justify-content: center;
	padding: 16px 0;
	border-radius: 0;
    }

    .导航项 i {
	margin-right: 0;
    }

    .主内容 {
	margin-bottom: 58px;
	border-right: none;
	max-width: none;
    }

    /* 添加移动端浮动发帖按钮 */
    .移动发帖按钮 {
	position: fixed;
	bottom: 80px;
	right: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--品牌颜色);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	transition: transform 0.2s;
    }

    .移动发帖按钮:hover {
	transform: scale(1.05);
    }

    .移动发帖按钮 i {
	font-size: 24px;
    }

    /* 大头像在移动端调整 */
    .大头像 {
	width: 80px;
	height: 80px;
	bottom: -40px;
    }

    .资料内容 {
	margin-top: 40px;
    }
}

/* 添加仅在小屏幕上显示的移动发帖按钮 */
.移动发帖按钮 {
    display: none;
}

@media (max-width: 500px) {
    .移动发帖按钮 {
	display: flex;
    }
}

/* 加载动画 */
.加载动画 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--品牌颜色);
}

.加载动画 i {
    animation: 旋转 1.5s linear infinite;
}

@keyframes 旋转 {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 弹出提示 */
.提示 {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: bold;
    z-index: 1000;
    display: none;
    animation: 淡入 0.3s, 淡出 0.3s 2.7s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@keyframes 淡出 {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, 20px); }
}

/* 空状态提示 */
.空状态 {
    padding: 40px 20px;
    text-align: center;
    color: var(--次文字颜色);
}

.空状态 i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.空状态标题 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--主文字颜色);
}

.空状态描述 {
    font-size: 15px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.空状态按钮 {
    display: inline-block;
    background-color: var(--品牌颜色);
    color: white;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.空状态按钮:hover {
    background-color: #1a8cd8;
}

/* 代码编辑器相关样式 */
.代码页面 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.代码编辑器容器 {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    overflow: hidden;
}

.代码编辑区 {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    padding: 16px;
    border-bottom: 1px solid var(--边框颜色);
}

.代码输入框 {
    width: 100%;
    height: 100%;
    background-color: var(--代码编辑器背景);
    color: var(--代码编辑器文字);
    font-family: "Monaco", "Menlo", "Ubuntu Mono", "Consolas", monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px;
    border: 1px solid var(--边框颜色);
    border-radius: 8px;
    resize: none;
    outline: none;
    margin-bottom: 12px;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
    -moz-tab-size: 4;
    overflow-wrap: normal;
}

.代码工具栏 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.代码工具栏按钮 {
    background-color: var(--品牌颜色);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s, opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.代码工具栏按钮:hover {
    background-color: #1a8cd8;
}

.代码工具栏按钮:disabled {
    opacity: 0.5;
    cursor: default;
}

.代码工具栏按钮.危险 {
    background-color: #f4212e;
}

.代码工具栏按钮.危险:hover {
    background-color: #e0001b;
}

.代码工具栏按钮.次要 {
    background-color: transparent;
    color: var(--主文字颜色);
    border: 1px solid var(--边框颜色);
}

.代码工具栏按钮.次要:hover {
    background-color: var(--悬停颜色);
}

.代码预览区 {
    flex: 1;
    overflow: hidden;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.代码预览框 {
    flex: 1;
    border: 1px solid var(--边框颜色);
    border-radius: 8px;
    overflow: hidden;
    background-color: white;
    position: relative;
}

.代码预览iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: white;
}

.代码操作按钮组 {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.代码提示 {
    background-color: var(--成功色);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 12px;
    display: none;
}

.代码提示.错误 {
    background-color: var(--错误色);
}

.代码提示.警告 {
    background-color: var(--警告色);
}

.代码提示.显示 {
    display: block;
    animation: 淡入 0.3s ease-in-out;
}

.录制状态 {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(244, 33, 46, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.录制状态 i {
    color: white;
    animation: 闪烁 1s infinite;
}

@keyframes 闪烁 {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.分割线 {
    display: flex;
    align-items: center;
    margin: 16px 0;
    color: var(--次文字颜色);
    font-size: 14px;
}

.分割线::before,
.分割线::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--边框颜色);
}

.分割线::before {
    margin-right: 8px;
}

.分割线::after {
    margin-left: 8px;
}

.代码标签容器 {
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
}

.代码信息 {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--次文字颜色);
    margin-top: 8px;
}

.预览控制栏 {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.预览控制按钮 {
    padding: 4px 8px;
    background-color: var(--次背景色);
    color: var(--主文字颜色);
    border: 1px solid var(--边框颜色);
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.预览控制按钮:hover {
    background-color: var(--悬停颜色);
}

.预览控制按钮 i {
    font-size: 14px;
}

.截图预览 {
    max-width: 100%;
    max-height: 200px;
    border: 1px solid var(--边框颜色);
    border-radius: 8px;
    margin-top: 12px;
    display: none;
}

.截图预览.显示 {
    display: block;
    animation: 淡入 0.3s ease-in-out;
}

/* 添加媒体查询以在小屏幕上调整代码编辑器布局 */
@media (max-width: 768px) {
    .代码编辑器容器 {
	flex-direction: column;
	height: auto;
    }

    .代码编辑区, .代码预览区 {
	height: 50vh;
    }
}

/* 下载链接样式 */
.下载链接 {
    color: var(--品牌颜色);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.下载链接:hover {
    background-color: var(--悬停颜色);
    text-decoration: underline;
}

.下载链接 i {
    font-size: 14px;
}

/* 代码编辑器标签样式 */
.代码编辑器标签 {
    display: flex;
    border-bottom: 1px solid var(--边框颜色);
    background-color: var(--代码编辑器背景);
    padding: 0 8px;
}

.代码编辑器标签项 {
    padding: 8px 16px;
    font-size: 14px;
    color: var(--次文字颜色);
    cursor: pointer;
    position: relative;
    border-right: 1px solid var(--边框颜色);
    background-color: rgba(0, 0, 0, 0.2);
}

.代码编辑器标签项.激活 {
    color: var(--主文字颜色);
    background-color: var(--代码编辑器背景);
    border-bottom: 2px solid var(--品牌颜色);
}

/* 添加一个加载遮罩 */
.加载遮罩 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    display: none;
}

.加载遮罩.显示 {
    display: flex;
    animation: 淡入 0.3s ease-in-out;
}

.加载遮罩 .加载动画 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.加载遮罩 .加载动画 i {
    font-size: 32px;
    margin-bottom: 16px;
}

.加载遮罩 .加载动画 span {
    color: white;
    font-size: 16px;
}