/* ===== tabs/advanced.css - 高级设置 Tab 样式 ===== */

/* 搜索框 */
.search-box {
    position: relative;
    margin-bottom: 12px;
}
.search-box input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color .3s;
    font-family: inherit;
}
.search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

/* 清除按钮 */
.search-box .clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 4px 8px;
    display: none;
    transition: all .2s;
    line-height: 1;
    z-index: 10;
}
.search-box .clear-btn:hover {
    color: #dc3545;
    transform: translateY(-50%) scale(1.1);
}
.search-box.has-search .clear-btn { display: block; }

/* 高级输入框 */
.adv-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color .3s;
}
.adv-input:focus {
    outline: none;
    border-color: #3b82f6;
}

/* 序列显示 */
.adv-seq-display {
    font-size: 12px;
    color: #6b7280;
    min-height: 20px;
    margin-top: 4px;
}
.adv-seq-display code {
    font-size: 11px;
    padding: 1px 5px;
    border-radius: 3px;
    background: #e0e7ff;
    color: #1d4ed8;
    margin: 0 1px;
}

/* 字符表格 */
.adv-char-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
    background: #f8f9fa;
    border-radius: 6px;
}
.adv-char-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 46px;
    padding: 2px 6px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    line-height: 1.2;
}
.adv-char-btn:hover {
    background: #dbeafe;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59,130,246,.25);
}
.adv-char-btn:active {
    transform: translateY(0);
    background: #bfdbfe;
}
.adv-char-label {
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.2;
}
.adv-char-badge {
    font-size: 9px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0 4px;
    border-radius: 3px;
    line-height: 1.3;
    margin-top: 1px;
}
