/* skin/css/common.css */
:root {
    --bp-blue: #0052cc;
    --bp-light-blue: #e3effd;
    --bp-grid: rgba(0, 82, 204, 0.05);
    --bp-text: #091e42;
    --bp-sub: #42526e; /* 加深颜色以提高对比度 */
    
    --line-solid: 1px solid var(--bp-blue);
    --line-dashed: 1px dashed var(--bp-blue);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
body, h1, h2, h3,h4,h5, p, ul, li, input, button { margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; object-fit: cover; }
ul { list-style: none; }

body {
    font-family: "Roboto Mono", "PingFang SC", monospace;
    background-color: #fff;
    color: var(--bp-text);
    line-height: 1.5;
    padding-bottom: 80px;
    
    /* 蓝图网格背景 */
    background-image: 
        linear-gradient(var(--bp-grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--bp-grid) 1px, transparent 1px);
    background-size: 20px 20px;
}

.blueprint-shell {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95); /* 提高不透明度 */
    min-height: 100vh;
    border-left: var(--line-solid);
    border-right: var(--line-solid);
    position: relative;
}

/* --- 顶部 Header (含实体搜索按钮) --- */
.bp-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: var(--line-solid);
    gap: 10px;
}
.bp-logo {
    font-size: 18px;
    font-weight: 900;
    color: var(--bp-blue);
    border: 2px solid var(--bp-blue);
    padding: 4px 8px;
    letter-spacing: 1px;
    white-space: nowrap;
}
.bp-logo img{
    height: 40px;
}
.bp-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    height: 38px;
    border: var(--line-solid);
    background: var(--bp-light-blue);
    padding: 0; /* 移除内边距，让按钮贴边 */
    position: relative;
}
.bp-search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13px; /* 调整字号 */
    color: var(--bp-blue);
    font-weight: bold;
    padding-left: 10px;
    min-width: 0;
}
/* 实体搜索按钮 */
.bp-search-btn {
    border: none;
    background: var(--bp-blue);
    color: #fff;
    height: 100%;
    padding: 0 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-left: var(--line-solid);
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 通用组件 --- */
.tech-frame {
    border: var(--line-solid);
    margin: 15px;
    padding: 15px;
    background: #fff;
    position: relative;
}
/* 装饰十字 */
.tech-frame::before { content: '+'; position: absolute; top: -10px; left: -6px; color: var(--bp-blue); background: #fff; font-size: 14px; }
.tech-frame::after { content: '+'; position: absolute; bottom: -10px; right: -6px; color: var(--bp-blue); background: #fff; font-size: 14px; }

/* 标题栏 (字号调整) */
.spec-title {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 15px 10px;
}
.st-label {
    font-size: 16px; font-weight: 900; color: var(--bp-blue);
    text-transform: uppercase; letter-spacing: 1px;
}
.st-link { 
    font-size: 12px; /* 修正最小字号 */
    text-decoration: underline; color: var(--bp-sub); 
}

/* 按钮 */
.btn-bp {
    background: #fff; color: var(--bp-blue);
    border: var(--line-solid);
    padding: 6px 16px;
    font-size: 12px; /* 修正最小字号 */
    font-weight: bold; font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-bp:hover { background: var(--bp-blue); color: #fff; }

/* 底部导航 (控制台) */
.ctrl-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 64px;
    background: #fff;
    border-top: var(--line-solid);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 999;
}
.ctrl-item {
    flex: 1; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--bp-sub);
    border-right: 1px dotted #ccc;
    transition: all 0.2s;
}
.ctrl-item:last-child { border-right: none; }
.ctrl-item.active { background: var(--bp-light-blue); color: var(--bp-blue); font-weight: bold; }
.ctrl-txt { 
    font-size: 12px; /* 修正最小字号 */
    margin-top: 4px; 
}

/* 横向滚动 */
.bp-scroll-x {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 0 15px 15px;
    border-bottom: 1px dotted #ccc;
}
.bp-icon-unit { 
    flex: 0 0 72px; text-align: center; border: 1px dotted #ccc; padding: 8px 4px; 
}
.bp-icon-unit img {
    width: 44px; height: 44px; margin: 0 auto 6px;
    border: 1px solid #eee;
}
.bp-icon-unit span { 
    font-size: 12px; /* 修正最小字号 */
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; 
}

/* SVG 图标保持不变 */
.icon-mask {
    width: 20px; height: 20px; background: currentColor;
    mask-size: contain; -webkit-mask-size: contain;
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
    mask-position: center; -webkit-mask-position: center;
}
/* ... Icons 保持原样 ... */
.im-home { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.im-game { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 12h4m-2-2v4m10-1h2m-5-2h2'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Cpath d='M6 12h4m-2-2v4m10-1h2m-5-2h2'/%3E%3C/svg%3E"); }
.im-soft { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='9' y1='21' x2='9' y2='9'/%3E%3C/svg%3E"); }
.im-rank { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2l3 6 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1 3-6z'/%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M12 2l3 6 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1 3-6z'/%3E%3C/svg%3E"); }
.im-search { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); }
.im-back { mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3'%3E%3Cline x1='19' y1='12' x2='5' y2='12'%3E%3C/line%3E%3Cpolyline points='12 19 5 12 12 5'%3E%3C/polyline%3E%3C/svg%3E"); }