/* ==========================================================================
   💾 纯字符艺术终端文本风格（High-Contrast ASCII TUI Style）
   ========================================================================== */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}

/* 全局纯黑白控制台底色 */
body { 
    font-family: "Consolas", "Courier New", "SimSun", monospace; 
    background-color: #ffffff; 
    color: #111111; 
    padding: 20px;
    font-size: 14px;
    line-height: 1.6;
}

/* 链接样式：自带经典的 [ 链接 ] 符号包裹符号 */
a {
    color: #0056b3; 
    text-decoration: none;
    padding: 0 2px;
}
a::before { content: "[ "; color: #777777; }
a::after { content: " ]"; color: #777777; }

/* 鼠标悬停/反色高亮 */
a:hover, a.active {
    background-color: #111111 !important;
    color: #ffffff !important;
}
a:hover::before, a:hover::after, a.active::before, a.active::after {
    color: #ffffff;
}

/* 手机端主容器居中修补 */
.tui-screen {
    width: 100%;        /* 默认宽度 100% 撑满全屏 */
    margin: 10px;          /* 没有外边距，默认靠左 */
    /* 甚至可能还残留着 PC 端带来的 float: left 等影响 */
}

/* 砍掉了原本大框框的 .tui-window 样式，降维成普通间距容器 */
.tui-window {
    background: transparent;
    margin-bottom: 25px;
}

/* ==========================================================================
   🎏 极简贯穿字符流标题栏（无任何实线框，全自动自适应延长线）
   ========================================================================== */
.tui-header-bar {
    background-color: transparent !important;
    color: #111111 !important;
    padding: 10px 0;
    font-weight: bold;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-family: monospace;
}


/* 菜单导航条：双横线「===」字符装饰带 */
.tui-menu {
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
    text-align: center;
}
.tui-menu::after {
    content: "========================================================================================================================================================";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    overflow: hidden;
    color: #111111;
    font-size: 12px;
}
.tui-menu-item {
    margin: 0 10px;
    display: inline-block;
}

/* ==========================================================================
   🌐 IP 查询 / 视频下载 组件极致字符化
   ========================================================================== */
.search-box, .video-form {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

#ipInput, .video-form input[type="text"], .video-form select {
    flex: 1;
    padding: 6px 10px;
    font-family: inherit;
    font-size: 14px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #111111;
    outline: none;
}

.search-box button, #downloadBtn {
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid #111111;
    color: #111111;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
}
.search-box button::before, #downloadBtn::before { content: "< "; }
.search-box button::after, #downloadBtn::after { content: " >"; }
.search-box button:active, #downloadBtn:active {
    background: #111111;
    color: #ffffff;
}

/* 数据列表：仅保留行与行之间的极轻点状分隔 */
.info-list {
    display: flex;
    flex-direction: column;
    margin: 15px 0;
}
.info-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px dotted #cccccc;
    gap: 10px;
}
.info-item:last-child { border-bottom: none; }
.info-label { color: #555555; font-weight: bold; }
.info-label::before { content: "├─ "; }
.info-value { color: #111111; word-break: break-all; }

/* 状态加载提示 */
.loading::after { content: " [WAIT...]"; color: #666666; font-family: monospace; }

/* ==========================================================================
   ✍️ 博文正文 / 文本框区域
   ========================================================================== */
.article-body h2 {
    color: #111111;
    margin: 25px 0 12px 0;
    font-size: 16px;
    font-weight: bold;
}
.article-body h2::before { content: "■-- "; }

.tui-raw-data, .content pre {
    background: #ffffff;
    border: 1px dashed #111111;
    padding: 12px;
    margin-top: 10px;
    color: #111111;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 广告盒子 */
.tui-ads-box {
    padding: 10px 0;
    margin: 15px 0;
    text-align: center;
}
.tui-label {
    color: #111111;
    font-size: 12px;
    font-weight: bold;
}
.tui-label::before { content: "--- "; }
.tui-label::after { content: " ---"; }

/* 📱 移动端自适应 */
@media (max-width: 480px) {
    .search-box, .video-form { flex-direction: column; gap: 8px; }
    .info-item { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   ✍️ 专为博文详情页设计的纯文本美化增强
   ========================================================================== */
.article-container h1 {
    font-size: 20px;
    font-weight: bold;
    color: #111111;
    margin: 20px 0 10px 0;
    line-height: 1.4;
}

/* 博文元数据行 */
.article-container .meta {
    font-size: 12px;
    color: #666666;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #111111;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.tag-badge, .cat-badge {
    background: #111111;
    color: #ffffff;
    padding: 1px 5px;
    font-size: 11px;
}

/* 正文标题风格：经典的纯文本区块符号 */
.article-body h2 {
    color: #111111;
    margin: 30px 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    border-bottom: 1px dotted #111111;
    padding-bottom: 3px;
}
.article-body h2::before { content: "■-- "; }

.article-body h3 {
    color: #111111;
    margin: 20px 0 10px 0;
    font-size: 14px;
    font-weight: bold;
}
.article-body h3::before { content: "├─ "; }

.article-body h4 {
    color: #444444;
    margin: 15px 0 5px 0;
    font-size: 13px;
    font-weight: bold;
}
.article-body h4::before { content: "  └> "; }

/* 列表样式回归：带缩进的硬核排版 */
.article-body ul, .article-body ol {
    margin: 10px 0 20px 25px;
}
.article-body li {
    margin-bottom: 8px;
    color: #222222;
}

/* 强调字：反色块突显 */
.article-body strong {
    background-color: #f1f1f1;
    padding: 0 4px;
    font-weight: bold;
}

/* 行内代码块样式 */
.article-body code {
    font-family: monospace;
    background: #f5f5f5;
    border: 1px solid #cccccc;
    padding: 1px 4px;
    margin: 0 2px;
    font-size: 13px;
}

/* 统一博文中的返回按钮风格，伪装成命令行里的返回操作 */
.back-btn {
    font-weight: bold;
    font-size: 13px;
}
